diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:05:18 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:18:21 +0200 |
commit | 43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch) | |
tree | 4aba689b76138118b4da043425fb3e8576db418c /src/game-server/being.hpp | |
parent | e726c34606f85347e70a0deb6b180db03b6d0c25 (diff) | |
download | manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.bz2 manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip |
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/game-server/being.hpp')
-rw-r--r-- | src/game-server/being.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp index 500754e4..92957096 100644 --- a/src/game-server/being.hpp +++ b/src/game-server/being.hpp @@ -138,7 +138,7 @@ class Being : public Actor * stats, deducts the result from the hitpoints and adds the result to * the HitsTaken list. */ - virtual int damage(Actor *source, Damage const &damage); + virtual int damage(Actor *source, const Damage &damage); /** * Changes status and calls all the "died" listeners. @@ -153,7 +153,7 @@ class Being : public Actor /** * Gets the destination coordinates of the being. */ - Point const &getDestination() const + const Point &getDestination() const { return mDst; } /** @@ -193,7 +193,7 @@ class Being : public Actor /** * Gets the damage list. */ - Hits const &getHitsTaken() const + const Hits &getHitsTaken() const { return mHitsTaken; } /** @@ -205,7 +205,7 @@ class Being : public Actor /** * Performs an attack. */ - void performAttack(Damage const &, AttackZone const *attackZone); + void performAttack(const Damage &, const AttackZone *attackZone); /** * Sets the current action. @@ -284,8 +284,8 @@ class Being : public Actor std::vector< Attribute > mAttributes; private: - Being(Being const &rhs); - Being &operator=(Being const &rhs); + Being(const Being &rhs); + Being &operator=(const Being &rhs); std::list<PATH_NODE> mPath; Point mOld; /**< Old coordinates. */ |