summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-05 00:15:27 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-05 00:15:27 +0100
commit12d4837d4d8bb6cbb5d4cd4199bb77b76108fa51 (patch)
tree3ceed68ebd672f564c11818efb0a793e43f0acc7 /src/being.h
parent81ca2120284ac7fd84e22ee61545b2b789f982e7 (diff)
downloadmana-12d4837d4d8bb6cbb5d4cd4199bb77b76108fa51.tar.gz
mana-12d4837d4d8bb6cbb5d4cd4199bb77b76108fa51.tar.bz2
mana-12d4837d4d8bb6cbb5d4cd4199bb77b76108fa51.tar.xz
mana-12d4837d4d8bb6cbb5d4cd4199bb77b76108fa51.zip
Renamed PATH_NODE to Position as on mainline
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/being.h b/src/being.h
index f48ebae2..6319bd47 100644
--- a/src/being.h
+++ b/src/being.h
@@ -28,6 +28,7 @@
#include <SDL_types.h>
#include <set>
+#include "position.h"
#include "sprite.h"
#include "map.h"
#include "animatedsprite.h"
@@ -49,24 +50,6 @@ class Text;
class StatusEffect;
-/**
- * A position along a being's path.
- */
-struct PATH_NODE
-{
- /**
- * Constructor.
- */
- PATH_NODE(unsigned short x, unsigned short y):
- x(x), y(y)
- { }
-
- unsigned short x;
- unsigned short y;
-};
-typedef std::list<PATH_NODE> Path;
-typedef Path::iterator PathIterator;
-
class Being : public Sprite
{
public:
@@ -115,10 +98,7 @@ class Being : public Sprite
/**
* 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;
+ enum { DOWN = 1, LEFT = 2, UP = 4, RIGHT = 8 };
Uint16 mJob; /**< Job (player job, npc, monster, ) */
Uint16 mX, mY; /**< Tile coordinates */