diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-03 18:59:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-03 19:03:30 +0300 |
commit | 98db78be9552b039090ce5dfc53803df2dd54b41 (patch) | |
tree | efda1a43723e8e11e075dcfef2776fe38c7cb3da /src/actorspritemanager.h | |
parent | d7cbb663f5f8e19ccfa7162ef7d1d4e3b4020335 (diff) | |
download | plus-98db78be9552b039090ce5dfc53803df2dd54b41.tar.gz plus-98db78be9552b039090ce5dfc53803df2dd54b41.tar.bz2 plus-98db78be9552b039090ce5dfc53803df2dd54b41.tar.xz plus-98db78be9552b039090ce5dfc53803df2dd54b41.zip |
Add some missing getters.
Diffstat (limited to 'src/actorspritemanager.h')
-rw-r--r-- | src/actorspritemanager.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/actorspritemanager.h b/src/actorspritemanager.h index 7960c6301..a78e3ad49 100644 --- a/src/actorspritemanager.h +++ b/src/actorspritemanager.h @@ -231,10 +231,10 @@ class ActorSpriteManager: public ConfigListener void addIgnoreAttackMob(std::string name); - std::list<std::string> getPriorityAttackMobs() + std::list<std::string> getPriorityAttackMobs() const { return mPriorityAttackMobs; } - std::list<std::string> getAttackMobs() + std::list<std::string> getAttackMobs() const { return mAttackMobs; } void setPriorityAttackMobs(std::list<std::string> mobs) @@ -243,29 +243,29 @@ class ActorSpriteManager: public ConfigListener void setAttackMobs(std::list<std::string> mobs) { mAttackMobs = mobs; } - int getPriorityAttackMobsSize() + int getPriorityAttackMobsSize() const { return mPriorityAttackMobs.size(); } - int getAttackMobsSize() + int getAttackMobsSize() const { return mAttackMobs.size(); } - std::list<std::string> getIgnoreAttackMobs() + std::list<std::string> getIgnoreAttackMobs() const { return mIgnoreAttackMobs; } - std::set<std::string> getAttackMobsSet() + std::set<std::string> getAttackMobsSet() const { return mAttackMobsSet; } - std::set<std::string> getPriorityAttackMobsSet() + std::set<std::string> getPriorityAttackMobsSet() const { return mPriorityAttackMobsSet; } - std::set<std::string> getIgnoreAttackMobsSet() + std::set<std::string> getIgnoreAttackMobsSet() const { return mIgnoreAttackMobsSet; } void rebuildPriorityAttackMobs(); void rebuildAttackMobs(); - bool isInAttackList(const std::string &name) + bool isInAttackList(const std::string &name) const { return mAttackMobsSet.find(name) != mAttackMobsSet.end(); } bool isInPriorityAttackList(const std::string &name) @@ -280,10 +280,10 @@ class ActorSpriteManager: public ConfigListener != mIgnoreAttackMobsSet.end(); } - std::map<std::string, int> getAttackMobsMap() + std::map<std::string, int> getAttackMobsMap() const { return mAttackMobsMap; } - std::map<std::string, int> getPriorityAttackMobsMap() + std::map<std::string, int> getPriorityAttackMobsMap() const { return mPriorityAttackMobsMap; } int getAttackMobIndex(std::string name); |