23 #ifndef SPELLMANAGER_H
24 #define SPELLMANAGER_H
56 void useItem(
const int itemId)
const;
58 void invoke(
const int spellId)
const;
67 void swap(
const int id1,
const int id2);
70 const Being *
const target);
76 const Being *
const target);
81 const Being *
const target)
84 std::map<unsigned int, TextCommand*>
mSpells;
std::vector< TextCommand * > mSpellsVector
const std::vector< TextCommand * > & getAll() const A_CONST
TextCommand * createNewSpell() const
static void invokeCommand(const std::string &command, const Being *const target)
const TextCommand * getSpellByItem(const int itemId) const
std::map< unsigned int, TextCommand * > mSpells
void swap(const int id1, const int id2)
static void invokeSpell(const TextCommand *const spell, const Being *const target)
bool addSpell(TextCommand *const spell)
void invoke(const int spellId) const
std::string autoComplete(const std::string &partName) const
TextCommand * getSpell(const int spellId) const
static std::string parseCommand(std::string command, const Being *const target)
void useItem(const int itemId) const
#define A_DELETE_COPY(func)
SpellManager * spellManager