From 8676da1517a86105e4cb4970fd3a7886f7d0c214 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 2 Aug 2006 23:05:46 +0000 Subject: Some cleanups, fixes and a small start on a solution for the animated sprite synchronization problem (resetting all animations). --- src/being.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 58a3e82d..0735efe9 100644 --- a/src/being.h +++ b/src/being.h @@ -31,6 +31,7 @@ #include "sprite.h" #include "map.h" +#include "animatedsprite.h" #define NR_HAIR_STYLES 7 #define NR_HAIR_COLORS 10 @@ -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 */ -- cgit v1.2.3-70-g09d2