diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-01 10:49:36 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-01 10:49:36 +0000 |
commit | 73911893133028a855931b037ed4e90217d5503a (patch) | |
tree | 24eaed10128754db9436ea9bd333d169f041cc0c /src/being.h | |
parent | 768cf33e1b66994379ac757aae0589bee83a2e7f (diff) | |
download | mana-73911893133028a855931b037ed4e90217d5503a.tar.gz mana-73911893133028a855931b037ed4e90217d5503a.tar.bz2 mana-73911893133028a855931b037ed4e90217d5503a.tar.xz mana-73911893133028a855931b037ed4e90217d5503a.zip |
Third time is the charm; changed sprite direction code again.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/being.h b/src/being.h index 6eca252c..f9287b65 100644 --- a/src/being.h +++ b/src/being.h @@ -299,9 +299,10 @@ class Being : public Sprite setAction(Uint8 action); /** - * Returns the current direction. + * Returns the direction the being is facing. */ - Uint8 getDirection() const { return mDirection; } + SpriteDirection getSpriteDirection() const + { return SpriteDirection(mSpriteDirection); } /** * Sets the current direction. @@ -351,18 +352,13 @@ class Being : public Sprite void setPath(const Path &path, int mod = 1024); - /** - * Returns the sprite direction of this being. - */ - SpriteDirection - getSpriteDirection() const; - Uint16 mId; /**< Unique being id */ Uint8 mSex; /**< Character's gender */ Uint16 mWeapon; /**< Weapon picture id */ Uint16 mWalkSpeed; /**< Walking speed */ Uint16 mSpeedModifier; /**< Modifier to keep course on sync (1024 = normal speed) */ - Uint8 mFaceDirection,mDirection;/**< Facing direction */ + Uint8 mSpriteDirection; /**< Facing direction */ + Uint8 mDirection; /**< Walking direction */ Map *mMap; /**< Map on which this being resides */ SpriteIterator mSpriteIterator; |