summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/being.h b/src/being.h
index 9b6596e5..45cfb15d 100644
--- a/src/being.h
+++ b/src/being.h
@@ -71,17 +71,13 @@ class Being : public Sprite
DEAD = 15
};
- enum Direction {
- DIR_NONE = -1,
- SOUTH = 0,
- SW = 1,
- WEST = 2,
- NW = 3,
- NORTH = 4,
- NE = 5,
- EAST = 6,
- SE = 7
- };
+ /**
+ * Directions, to be used as bitmask values
+ */
+ static const char DOWN = 1;
+ static const char LEFT = 2;
+ static const char UP = 4;
+ static const char RIGHT = 8;
Uint16 job; /**< Job (player job, npc, monster, ) */
Uint16 x, y; /**< Tile coordinates */