summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-12 17:17:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-12 17:17:53 +0300
commit81f319af0c6321474282de8928378366bbb6e44d (patch)
tree7250047bc275bd3ad399d28cfe954a48bafbd92a /src/being/being.h
parentdb6b712e4169d80f8f2c84a0efbc553d2058c191 (diff)
downloadmanaverse-81f319af0c6321474282de8928378366bbb6e44d.tar.gz
manaverse-81f319af0c6321474282de8928378366bbb6e44d.tar.bz2
manaverse-81f319af0c6321474282de8928378366bbb6e44d.tar.xz
manaverse-81f319af0c6321474282de8928378366bbb6e44d.zip
Move being directions into separate file.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h16
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