diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 20:59:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 20:59:14 +0300 |
commit | 390e5da0f9ecc4407aa7d4bcba1af5730db56271 (patch) | |
tree | ee0879cba3fec38740f1e51f2d1d35719ec3d8ae /src/enums/being | |
parent | 9f1994182d4225f630a93ae06b01927c4f7a9a37 (diff) | |
download | manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.tar.gz manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.tar.bz2 manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.tar.xz manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.zip |
Convert AttackType enum into strong typed enum.
Diffstat (limited to 'src/enums/being')
-rw-r--r-- | src/enums/being/attacktype.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/enums/being/attacktype.h b/src/enums/being/attacktype.h index d04f88ed9..f9424ebd4 100644 --- a/src/enums/being/attacktype.h +++ b/src/enums/being/attacktype.h @@ -23,26 +23,26 @@ #ifndef ENUMS_BEING_ATTACKTYPE_H #define ENUMS_BEING_ATTACKTYPE_H -namespace AttackType +#include "enums/simpletypes/enumdefines.h" + +enumStart(AttackType) { - enum Type - { - HIT = 0, - PICKUP = 1, - SIT = 2, - STAND = 3, - REFLECT = 4, - SPLASH = 5, - SKILL = 6, - REPEATE = 7, - MULTI = 8, - MULTI_REFLECT = 9, - CRITICAL = 10, - FLEE = 11, - TOUCH_SKILL = 12, - MISS = 0xffff, // pseudo value for miss attacks - SKILLMISS // pseudo value for skill miss attacks - }; -} // namespace AttackType + HIT = 0, + PICKUP = 1, + SIT = 2, + STAND = 3, + REFLECT = 4, + SPLASH = 5, + SKILL = 6, + REPEATE = 7, + MULTI = 8, + MULTI_REFLECT = 9, + CRITICAL = 10, + FLEE = 11, + TOUCH_SKILL = 12, + MISS = 0xffff, // pseudo value for miss attacks + SKILLMISS // pseudo value for skill miss attacks +} +enumEnd(AttackType); #endif // ENUMS_BEING_ATTACKTYPE_H |