summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/actorspritemanager.h
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadManaVerse-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.h14
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();