diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-02 23:05:46 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-02 23:05:46 +0000 |
commit | 8676da1517a86105e4cb4970fd3a7886f7d0c214 (patch) | |
tree | 5c4b3b7748c62d9375799f375e13c4b58a89498a /src/being.h | |
parent | 8714de88fe9715b5a4014f16d15bc55f8860cdcf (diff) | |
download | mana-8676da1517a86105e4cb4970fd3a7886f7d0c214.tar.gz mana-8676da1517a86105e4cb4970fd3a7886f7d0c214.tar.bz2 mana-8676da1517a86105e4cb4970fd3a7886f7d0c214.tar.xz mana-8676da1517a86105e4cb4970fd3a7886f7d0c214.zip |
Some cleanups, fixes and a small start on a solution for the animated sprite
synchronization problem (resetting all animations).
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 */ |