summaryrefslogtreecommitdiff
path: root/src/spellmanager.h
diff options
context:
space:
mode:
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();