diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
commit | 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch) | |
tree | 68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/actorspritemanager.h | |
parent | 41044107cc0a17125ebd806c9934b6eb636dafe6 (diff) | |
download | manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2 manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip |
Add const to more classes.
Diffstat (limited to 'src/actorspritemanager.h')
-rw-r--r-- | src/actorspritemanager.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/actorspritemanager.h b/src/actorspritemanager.h index 1272d1e86..a3f5b3941 100644 --- a/src/actorspritemanager.h +++ b/src/actorspritemanager.h @@ -126,7 +126,8 @@ class ActorSpriteManager: public ConfigListener int maxTileDist, const ActorSprite::Type type = Being::UNKNOWN, - Being *const excluded = nullptr) const; + const Being *const + excluded = nullptr) const; /** * Returns a being nearest to another being. @@ -136,7 +137,7 @@ class ActorSpriteManager: public ConfigListener * larger, no being is returned. * @param type The type of being to look for. */ - Being *findNearestLivingBeing(Being *const aroundBeing, + Being *findNearestLivingBeing(const Being *const aroundBeing, const int maxTileDist, const ActorSprite::Type type = Being::UNKNOWN @@ -298,9 +299,12 @@ class ActorSpriteManager: public ConfigListener const Being *const excluded = nullptr, const int maxCost = 20) const; - Being *findNearestLivingBeing(Being *aroundBeing, int maxdist, - Being::Type type, int x, int y, - Being *excluded = nullptr) const; + Being *findNearestLivingBeing(const Being *const aroundBeing, + const int maxdist, + const Being::Type type, + const int x, const int y, + const Being *const + excluded = nullptr) const; void loadAttackList(); void storeAttackList(); |