From 98db78be9552b039090ce5dfc53803df2dd54b41 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 Feb 2012 18:59:37 +0300 Subject: Add some missing getters. --- src/being.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index f34c192cb..8b3db1919 100644 --- a/src/being.h +++ b/src/being.h @@ -489,7 +489,7 @@ class Being : public ActorSprite, public ConfigListener virtual void setDirectionDelayed(Uint8 direction) { mDirectionDelayed = direction; } - Uint8 getDirectionDelayed() + Uint8 getDirectionDelayed() const { return mDirectionDelayed; } /** @@ -588,7 +588,7 @@ class Being : public ActorSprite, public ConfigListener void setIsReachable(int n) { mIsReachable = n; } - int isReachable() + int isReachable() const { return mIsReachable; } static void reReadConfig(); @@ -681,7 +681,7 @@ class Being : public ActorSprite, public ConfigListener void setMaxHP(int hp); - int getHP() + int getHP() const { return mHP; } Uint8 calcDirection(int dstX, int dstY) const; @@ -691,22 +691,22 @@ class Being : public ActorSprite, public ConfigListener void setAttackDelay(int n) { mAttackDelay = n; } - int getAttackDelay() + int getAttackDelay() const { return mAttackDelay; } - int getMinHit() + int getMinHit() const { return mMinHit; } void setMinHit(int n) { mMinHit = n; } - int getMaxHit() + int getMaxHit() const { return mMaxHit; } void setMaxHit(int n) { mMaxHit = n; } - int getCriticalHit() + int getCriticalHit() const { return mCriticalHit; } void setCriticalHit(int n) @@ -718,7 +718,7 @@ class Being : public ActorSprite, public ConfigListener void undressItemById(int id); - int getGoodStatus() + int getGoodStatus() const { return mGoodStatus; } void setGoodStatus(int n) @@ -730,7 +730,7 @@ class Being : public ActorSprite, public ConfigListener void updateComment(); - std::string getComment() + const std::string getComment() const { return mComment; } void setComment(std::string n) @@ -743,13 +743,13 @@ class Being : public ActorSprite, public ConfigListener static void saveComment(const std::string &name, const std::string &comment, int type); - bool isAdvanced() + bool isAdvanced() const { return mAdvanced; } void setAdvanced(bool n) { mAdvanced = n; addToCache(); } - bool isShopEnabled() + bool isShopEnabled() const { return mShop; } void enableShop(bool b) -- cgit v1.2.3-60-g2f50