summaryrefslogtreecommitdiff
path: root/src/spellmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-24 13:20:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-24 13:20:54 +0300
commitf1f5595df167c69cc1c04157e477cd9dce290f66 (patch)
tree9ea15c536f1524606b1d3689949f99feb892686d /src/spellmanager.h
parent890349c3d1ad29ff668a3ef7fd7c535ed9a876ef (diff)
downloadmanaplus-f1f5595df167c69cc1c04157e477cd9dce290f66.tar.gz
manaplus-f1f5595df167c69cc1c04157e477cd9dce290f66.tar.bz2
manaplus-f1f5595df167c69cc1c04157e477cd9dce290f66.tar.xz
manaplus-f1f5595df167c69cc1c04157e477cd9dce290f66.zip
improve spellmanager class.
Diffstat (limited to 'src/spellmanager.h')
-rw-r--r--src/spellmanager.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/spellmanager.h b/src/spellmanager.h
index c374aae19..1b25fd83d 100644
--- a/src/spellmanager.h
+++ b/src/spellmanager.h
@@ -42,9 +42,9 @@ class SpellManager final
~SpellManager();
- TextCommand *getSpell(const int spellId) A_WARN_UNUSED;
+ TextCommand *getSpell(const int spellId) const A_WARN_UNUSED;
- TextCommand* getSpellByItem(const int itemId) A_WARN_UNUSED;
+ TextCommand* getSpellByItem(const int itemId) const A_WARN_UNUSED;
bool addSpell(TextCommand *const spell);
@@ -52,15 +52,16 @@ class SpellManager final
std::vector<TextCommand*> getAll() const A_WARN_UNUSED;
- void useItem(const int itemId);
+ void useItem(const int itemId) const;
- void invoke(const int spellId);
+ void invoke(const int spellId) const;
void load(const bool oldConfig = false);
- void save();
+ void save() const;
- std::string autoComplete(std::string partName) A_WARN_UNUSED;
+ std::string autoComplete(const std::string &partName)
+ const A_WARN_UNUSED;
private:
void fillSpells();