diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:21:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:21:10 +0300 |
commit | 7d606d7dd9708c9c382d1f8eba5fed9becdfd3d5 (patch) | |
tree | 8b74b950fd50627b9477d97053a4ade9fd9aa7fd /src/actormanager.h | |
parent | 21069ec1635bd24ab33805e033d28f2c0b2de482 (diff) | |
download | plus-7d606d7dd9708c9c382d1f8eba5fed9becdfd3d5.tar.gz plus-7d606d7dd9708c9c382d1f8eba5fed9becdfd3d5.tar.bz2 plus-7d606d7dd9708c9c382d1f8eba5fed9becdfd3d5.tar.xz plus-7d606d7dd9708c9c382d1f8eba5fed9becdfd3d5.zip |
Add missing const in other left files.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r-- | src/actormanager.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/actormanager.h b/src/actormanager.h index 78f53a6d5..eac773fe8 100644 --- a/src/actormanager.h +++ b/src/actormanager.h @@ -60,6 +60,7 @@ typedef ActorSpritesMap::iterator ActorSpritesMapIterator; typedef ActorSpritesMap::const_iterator ActorSpritesMapConstIterator; typedef std::map<BeingId, std::set<std::string> > IdNameMapping; +typedef IdNameMapping::const_iterator IdNameMappingCIter; class ActorManager final: public ConfigListener { @@ -261,7 +262,7 @@ class ActorManager final: public ConfigListener void printAllToChat(); - void printBeingsToChat(const std::string &header); + void printBeingsToChat(const std::string &header) const; static void printBeingsToChat(const std::vector<Being*> &beings, const std::string &header); @@ -281,8 +282,11 @@ class ActorManager final: public ConfigListener void parseLevels(std::string levels) const; #endif - bool pickUpAll(const int x1, const int y1, const int x2, const int y2, - const bool serverBuggy = false); + bool pickUpAll(const int x1, + const int y1, + const int x2, + const int y2, + const bool serverBuggy = false) const; bool pickUpNearest(const int x, const int y, int maxdist) const; @@ -356,14 +360,14 @@ class ActorManager final: public ConfigListener void updateEffects(const std::map<BeingTypeId, int> &addEffects, const std::set<BeingTypeId> &removeEffects) const; - void updateBadges(); + void updateBadges() const; void updateNameId(const std::string &name, const BeingId beingId); void updateSeenPlayers(const std::set<std::string> &onlinePlayers); - std::string getSeenPlayerById(const BeingId id); + std::string getSeenPlayerById(const BeingId id) const; size_t size() const { return mActors.size(); } |