diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-26 18:50:34 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-26 18:50:34 +0000 |
commit | ef82a7df8aafb569f6db5e77ff2dd67fde860148 (patch) | |
tree | 202a461e6d9d426ef1d080ec554334a195fa709a /src/player.h | |
parent | c3a3b608b3f9a7b2edb3a7132af5dffde1a9e3c2 (diff) | |
download | mana-ef82a7df8aafb569f6db5e77ff2dd67fde860148.tar.gz mana-ef82a7df8aafb569f6db5e77ff2dd67fde860148.tar.bz2 mana-ef82a7df8aafb569f6db5e77ff2dd67fde860148.tar.xz mana-ef82a7df8aafb569f6db5e77ff2dd67fde860148.zip |
Applied patch by Bahamut81 which implements resetting of Animation, Action and
AnimatedSprite. This fixes the animation synchronization issues.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/src/player.h b/src/player.h index 15e7f655..21870fb0 100644 --- a/src/player.h +++ b/src/player.h @@ -37,19 +37,34 @@ class Player : public Being public: Player(Uint32 id, Uint16 job, Map *map); - virtual void logic(); + virtual void + logic(); - virtual Type getType() const; + virtual Type + getType() const; - virtual void drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY); + virtual void + drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY); - virtual void setSex(Uint8 sex); + virtual void + setSex(Uint8 sex); - virtual void setHairColor(Uint16 color); + virtual void + setHairColor(Uint16 color); - virtual void setHairStyle(Uint16 style); + virtual void + setHairStyle(Uint16 style); - virtual void setVisibleEquipment(Uint8 slot, Uint8 id); + virtual void + setVisibleEquipment(Uint8 slot, Uint8 id); + + private: + /** + * Resets all animations associated with this player. This is used to + * synchronize the animations after a new one has been added. + */ + void + resetAnimations(); }; #endif |