From 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 23:40:41 +0300 Subject: Add const to more classes. --- src/actorspritemanager.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/actorspritemanager.h') 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(); -- cgit v1.2.3-60-g2f50