summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 23:24:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 23:24:05 +0300
commitc593adb7fb0dffc62f1311e6c52f25bfafcdf0f4 (patch)
treefc89a0dde74c24d2876cf5833ff1d42d3ffd8c51 /src/being/being.h
parente9b375927f271808d507c5a95443d460bbd6ce92 (diff)
downloadmv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.gz
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.bz2
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.xz
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.zip
Convert BeingAction enum into strong typed enum.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.h b/src/being/being.h
index 83ca7785a..d21ad8acc 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -438,13 +438,13 @@ class Being notfinal : public ActorSprite,
/**
* Sets the current action.
*/
- virtual void setAction(const BeingAction::Action &action,
+ virtual void setAction(const BeingActionT &action,
const int attackType);
/**
* Get the being's action currently performed.
*/
- BeingAction::Action getCurrentAction() const A_WARN_UNUSED
+ BeingActionT getCurrentAction() const A_WARN_UNUSED
{ return mAction; }
/**
@@ -996,7 +996,7 @@ class Being notfinal : public ActorSprite,
int mPreStandTime;
Gender::Type mGender;
- BeingAction::Action mAction;
+ BeingActionT mAction;
BeingTypeId mSubType; /**< Subtype (graphical view, basically) */
uint8_t mDirection; /**< Facing direction */
uint8_t mDirectionDelayed; /**< Facing direction */