summaryrefslogtreecommitdiff
path: root/src/enums
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/enums
parente9b375927f271808d507c5a95443d460bbd6ce92 (diff)
downloadplus-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.gz
plus-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.bz2
plus-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.xz
plus-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.zip
Convert BeingAction enum into strong typed enum.
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/being/beingaction.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/enums/being/beingaction.h b/src/enums/being/beingaction.h
index 408051d74..51b3e4e2d 100644
--- a/src/enums/being/beingaction.h
+++ b/src/enums/being/beingaction.h
@@ -23,24 +23,19 @@
#ifndef ENUMS_BEING_BEINGACTION_H
#define ENUMS_BEING_BEINGACTION_H
-namespace BeingAction
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(BeingAction)
{
- /**
- * Action the being is currently performing
- * WARNING: Has to be in sync with the same enum in the Being class
- * of the server!
- */
- enum Action
- {
- STAND = 0,
- MOVE,
- ATTACK,
- SIT,
- DEAD,
- HURT,
- SPAWN,
- PRESTAND
- };
-} // namespace BeingAction
+ STAND = 0,
+ MOVE,
+ ATTACK,
+ SIT,
+ DEAD,
+ HURT,
+ SPAWN,
+ PRESTAND
+}
+enumEnd(BeingAction);
#endif // ENUMS_BEING_BEINGACTION_H