summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-13 11:36:36 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-13 11:36:36 +0000
commitafc770043be553998555e9ac1cffca68dc482d48 (patch)
tree60e99ade9464b0a1de2ec246724a7bfe0957eec4 /src/being.h
parentcfcc1bc3a756185bd39dd858ebbe69b5916ac11b (diff)
downloadmana-client-afc770043be553998555e9ac1cffca68dc482d48.tar.gz
mana-client-afc770043be553998555e9ac1cffca68dc482d48.tar.bz2
mana-client-afc770043be553998555e9ac1cffca68dc482d48.tar.xz
mana-client-afc770043be553998555e9ac1cffca68dc482d48.zip
Merged cleanups and content changes from the trunk. Also fixed compiling with
OpenGL enabled.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h
index 478bc018..0735efe9 100644
--- a/src/being.h
+++ b/src/being.h
@@ -29,13 +29,14 @@
#include <SDL_types.h>
#include <vector>
-#include "animation.h"
#include "sprite.h"
#include "map.h"
+#include "animatedsprite.h"
#define NR_HAIR_STYLES 7
#define NR_HAIR_COLORS 10
+class AnimatedSprite;
class Equipment;
class Item;
class Map;
@@ -290,7 +291,7 @@ class Being : public Sprite
/**
* Sets the current action.
*/
- void setAction(Action action);
+ void setAction(Uint8 action);
/**
* Sets the current direction.
@@ -347,6 +348,12 @@ class Being : public Sprite
*/
int getOffset(char pos, char neg) const;
+ /**
+ * Returns the sprite direction of this being.
+ */
+ SpriteDirection
+ getSpriteDirection() const;
+
Uint32 mId; /**< Unique sprite id */
Uint16 mWeapon; /**< Weapon picture id */
Uint16 mWalkSpeed; /**< Walking speed */