diff options
author | Paul Gilbert | 2010-07-06 11:33:09 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-07-06 11:33:09 +0000 |
commit | c89fe5f6d56b6d6e11b7d642e85633bc86098ce8 (patch) | |
tree | 47c8ae8910e1bbbf654f60e68caa93ed750d3bdc /engines/m4/mads_player.h | |
parent | 3f7dc9e0e2e4d043b2234b7b66981e16eb8a84b1 (diff) | |
download | scummvm-rg350-c89fe5f6d56b6d6e11b7d642e85633bc86098ce8.tar.gz scummvm-rg350-c89fe5f6d56b6d6e11b7d642e85633bc86098ce8.tar.bz2 scummvm-rg350-c89fe5f6d56b6d6e11b7d642e85633bc86098ce8.zip |
Added support for idle character animations
svn-id: r50723
Diffstat (limited to 'engines/m4/mads_player.h')
-rw-r--r-- | engines/m4/mads_player.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/m4/mads_player.h b/engines/m4/mads_player.h index 7285796309..7db45cae43 100644 --- a/engines/m4/mads_player.h +++ b/engines/m4/mads_player.h @@ -39,13 +39,19 @@ private: void setTicksAmount(); void resetActionList(); int queueAction(int v0, int v1); + void idle(); + void move(); + void dirChanged(); public: char _spritesPrefix[16]; int _spriteSetCount; bool _spriteSetsPresent[8]; Common::Point _playerPos; Common::Point _destPos; + uint32 _priorTimer; + uint _ticksAmount; int16 _direction, _direction2; + bool _stepEnabled; bool _visible, _priorVisible; bool _visible3; bool _forceRefresh; @@ -57,7 +63,7 @@ public: uint16 _frameOffset, _frameNum; bool _moving; int _unk1; - int _newFrame; + int _frameCount; int _frameListIndex; int _actionIndex; int _actionList[12]; @@ -71,9 +77,10 @@ public: bool loadSprites(const char *prefix); void update(); - void idle(); + void updateFrame(); void setupFrame(); void step(); + void nextFrame(); }; } // End of namespace M4 |