diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 21:42:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 22:43:38 +0300 |
commit | 3411edb5d3ae07d247421e4b8f7936a22b7b4027 (patch) | |
tree | 63685d0979938a42a62b3f0a880663bb06f4e8ca /src/enums/being/attributes.h | |
parent | 390e5da0f9ecc4407aa7d4bcba1af5730db56271 (diff) | |
download | mv-3411edb5d3ae07d247421e4b8f7936a22b7b4027.tar.gz mv-3411edb5d3ae07d247421e4b8f7936a22b7b4027.tar.bz2 mv-3411edb5d3ae07d247421e4b8f7936a22b7b4027.tar.xz mv-3411edb5d3ae07d247421e4b8f7936a22b7b4027.zip |
Convert Attributes enum into strong typed enum.
Diffstat (limited to 'src/enums/being/attributes.h')
-rw-r--r-- | src/enums/being/attributes.h | 83 |
1 files changed, 40 insertions, 43 deletions
diff --git a/src/enums/being/attributes.h b/src/enums/being/attributes.h index 45ac46d27..9ef5533bd 100644 --- a/src/enums/being/attributes.h +++ b/src/enums/being/attributes.h @@ -22,49 +22,46 @@ #ifndef ENUMS_BEING_ATTRIBUTES_H #define ENUMS_BEING_ATTRIBUTES_H -namespace Attributes +#include "enums/simpletypes/enumdefines.h" + +enumStart(Attributes) { - /** - * Standard attributes for players. - */ - enum Attributes - { - LEVEL = 0, - HP, - MAX_HP, - MP, - MAX_MP, - EXP, - EXP_NEEDED, - MONEY, - TOTAL_WEIGHT, - MAX_WEIGHT, - JOB = 10, - STR = 13, - AGI = 14, - VIT = 15, - INT = 16, - DEX = 17, - LUK = 18, - SKILL_POINTS, - CHAR_POINTS, - CORR_POINTS, - ATTACK_DELAY = 100, - ATTACK_RANGE = 101, - WALK_SPEED = 102, - ATTACK_SPEED = 103, - KARMA, - MANNER, - CRIT, - FLEE, - HIT, - MDEF, - MATK, - DEF, - ATK, - CART_TOTAL_WEIGHT = 1000, - CART_MAX_WEIGHT - }; -} // namespace Attributes + LEVEL = 0, + HP, + MAX_HP, + MP, + MAX_MP, + EXP, + EXP_NEEDED, + MONEY, + TOTAL_WEIGHT, + MAX_WEIGHT, + JOB = 10, + STR = 13, + AGI = 14, + VIT = 15, + INT = 16, + DEX = 17, + LUK = 18, + SKILL_POINTS, + CHAR_POINTS, + CORR_POINTS, + ATTACK_DELAY = 100, + ATTACK_RANGE = 101, + WALK_SPEED = 102, + ATTACK_SPEED = 103, + KARMA, + MANNER, + CRIT, + FLEE, + HIT, + MDEF, + MATK, + DEF, + ATK, + CART_TOTAL_WEIGHT = 1000, + CART_MAX_WEIGHT +} +enumEnd(Attributes); #endif // ENUMS_BEING_ATTRIBUTES_H |