summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-17 02:21:53 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-17 03:55:25 +0200
commitabeb003b88cc49ba70cdadd2e3adec6eca1751ec (patch)
treec0f93a83772ef372f3d610948b6f995acd5bf6ce /src/being.h
parent59dc0bffc0f754de8daed29bce3a48e90ea6b4fb (diff)
downloadmanaplus-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.tar.gz
manaplus-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.tar.bz2
manaplus-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.tar.xz
manaplus-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.zip
Fix other players move animation.
As dirty hack added delayed direction.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 1d5ca7c19..1dc2fd8f8 100644
--- a/src/being.h
+++ b/src/being.h
@@ -452,6 +452,12 @@ class Being : public ActorSprite, public ConfigListener
*/
virtual void setDirection(Uint8 direction);
+ virtual void setDirectionDelayed(Uint8 direction)
+ { mDirectionDelayed = direction; }
+
+ Uint8 getDirectionDelayed()
+ { return mDirectionDelayed; }
+
/**
* Returns the direction the being is facing.
*/
@@ -677,6 +683,8 @@ class Being : public ActorSprite, public ConfigListener
Uint16 mSubType; /**< Subtype (graphical view, basically) */
Uint8 mDirection; /**< Facing direction */
+ Uint8 mDirectionDelayed; /**< Facing direction */
+
Uint8 mSpriteDirection; /**< Facing direction */
std::string mName; /**< Name of character */
std::string mPartyName;