diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-01 20:49:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 00:37:51 +0300 |
commit | 4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch) | |
tree | 7cadc707bb49e4c148ba9c182075697a9643e20a /src/localplayer.h | |
parent | ed3410d7eb61593a2235ddba97ce257c85e405a6 (diff) | |
download | mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2 mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip |
Add const to more classes.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index da8dd02cd..bfa74d660 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -90,7 +90,7 @@ class LocalPlayer : public Being, public ActorSpriteListener, * Compute the next pathnode location when walking using keyboard. * used by nextTile(). */ - Position getNextWalkPosition(unsigned char dir) const; + Position getNextWalkPosition(const unsigned char dir) const; /** * Adds a new tile to the path when walking. @@ -129,7 +129,7 @@ class LocalPlayer : public Being, public ActorSpriteListener, */ int getAttackRange() const; - int getAttackRange2(); + int getAttackRange2() const; void attack(Being *const target = nullptr, const bool keep = false, const bool dontChangeEquipment = false); @@ -183,7 +183,7 @@ class LocalPlayer : public Being, public ActorSpriteListener, */ bool withinAttackRange(const Being *const target, const bool fixDistance = false, - const int addRange = 0); + const int addRange = 0) const; /** * Stops the player dead in his tracks @@ -294,9 +294,9 @@ class LocalPlayer : public Being, public ActorSpriteListener, void switchGameModifiers(); - void magicAttack(); + void magicAttack() const; - void specialMove(unsigned char direction); + void specialMove(const unsigned char direction); void moveByDirection(const unsigned char dir); @@ -356,7 +356,8 @@ class LocalPlayer : public Being, public ActorSpriteListener, void navigateClean(); - void imitateEmote(const Being *const being, const unsigned char emote); + void imitateEmote(const Being *const being, + const unsigned char emote) const; void imitateAction(const Being *const being, const Being::Action action); @@ -503,7 +504,7 @@ class LocalPlayer : public Being, public ActorSpriteListener, std::string getPickUpTypeString(); - std::string getDebugPathString(); + std::string getDebugPathString() const; std::string getMagicAttackString(); @@ -513,7 +514,7 @@ class LocalPlayer : public Being, public ActorSpriteListener, std::string getAwayModeString(); - std::string getCameraModeString(); + std::string getCameraModeString() const; std::string getGameModifiersString(); |