diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 17:04:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 17:04:50 +0300 |
commit | 2a33b736dc93251bf7a72364c5f818142362a3ce (patch) | |
tree | f2739f3f5721d517149a8b00d0c88fbfe095aaea /src/being/being.h | |
parent | 2b46f2d6d7cd732f1f4f1d9e8a15a1428166a959 (diff) | |
download | mv-2a33b736dc93251bf7a72364c5f818142362a3ce.tar.gz mv-2a33b736dc93251bf7a72364c5f818142362a3ce.tar.bz2 mv-2a33b736dc93251bf7a72364c5f818142362a3ce.tar.xz mv-2a33b736dc93251bf7a72364c5f818142362a3ce.zip |
Convert Reachable enum into strong typed enum.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/being/being.h b/src/being/being.h index ead24af3f..6e8588213 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -23,6 +23,8 @@ #ifndef BEING_BEING_H #define BEING_BEING_H +#include "enums/being/reachable.h" + #include "enums/simpletypes/move.h" #include "resources/beinginfo.h" @@ -556,11 +558,11 @@ class Being notfinal : public ActorSprite, virtual int getLevel() const A_WARN_UNUSED { return mLevel; } - void setIsReachable(const int n) - { mIsReachable = n; } + void setReachable(const ReachableT n) + { mReachable = n; } - int isReachable() const A_WARN_UNUSED - { return mIsReachable; } + ReachableT getReachable() const A_WARN_UNUSED + { return mReachable; } static void reReadConfig(); @@ -1058,7 +1060,7 @@ class Being notfinal : public ActorSprite, int mHP; int mMaxHP; int mDistance; - int mIsReachable; /**< 0 - unknown, 1 - reachable, 2 - not reachable*/ + ReachableT mReachable; /**< 0 - unknown, 1 - reachable, 2 - not reachable*/ int mGoodStatus; static int mUpdateConfigTime; |