From 81f319af0c6321474282de8928378366bbb6e44d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 May 2014 17:17:53 +0300 Subject: Move being directions into separate file. --- src/being/being.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/being/being.h') 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 @@ -136,17 +137,6 @@ class Being : public ActorSprite, public ConfigListener REACH_NO = 2 }; - /** - * Directions, to be used as bitmask values - */ - enum BeingDirection - { - DOWN = 1, - LEFT = 2, - UP = 4, - RIGHT = 8 - }; - /** * Constructor. * @@ -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 -- cgit v1.2.3-70-g09d2