diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-12 17:17:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-12 17:17:53 +0300 |
commit | 81f319af0c6321474282de8928378366bbb6e44d (patch) | |
tree | 7250047bc275bd3ad399d28cfe954a48bafbd92a /src/being/being.h | |
parent | db6b712e4169d80f8f2c84a0efbc553d2058c191 (diff) | |
download | plus-81f319af0c6321474282de8928378366bbb6e44d.tar.gz plus-81f319af0c6321474282de8928378366bbb6e44d.tar.bz2 plus-81f319af0c6321474282de8928378366bbb6e44d.tar.xz plus-81f319af0c6321474282de8928378366bbb6e44d.zip |
Move being directions into separate file.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/being/being.h b/src/being/being.h index 869cb374f..c476e45b3 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -29,6 +29,7 @@ #include "listeners/configlistener.h" +#include "being/beingdirection.h" #include "being/gender.h" #include <map> @@ -137,17 +138,6 @@ class Being : public ActorSprite, public ConfigListener }; /** - * Directions, to be used as bitmask values - */ - enum BeingDirection - { - DOWN = 1, - LEFT = 2, - UP = 4, - RIGHT = 8 - }; - - /** * Constructor. * * @param id a unique being id @@ -193,14 +183,14 @@ class Being : public ActorSprite, public ConfigListener * TODO: Used by eAthena only? */ int getXOffset() const A_WARN_UNUSED - { return getOffset(LEFT, RIGHT); } + { return getOffset(BeingDirection::LEFT, BeingDirection::RIGHT); } /** * Get the current Y pixel offset. * TODO: Used by eAthena only? */ int getYOffset() const A_WARN_UNUSED - { return getOffset(UP, DOWN); } + { return getOffset(BeingDirection::UP, BeingDirection::DOWN); } /** * Creates a path for the being from current position to ex and ey |