From c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 23:24:05 +0300 Subject: Convert BeingAction enum into strong typed enum. --- src/enums/being/beingaction.h | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'src/enums/being/beingaction.h') 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 -- cgit v1.2.3-70-g09d2