diff options
author | Robert Špalek | 2009-11-08 06:46:24 +0000 |
---|---|---|
committer | Robert Špalek | 2009-11-08 06:46:24 +0000 |
commit | 4341a366410bc2f15d0001b69261a37d56016b10 (patch) | |
tree | 4c177b8451cb06f2d18f240ecb14180527c2823f /engines/draci/animation.h | |
parent | a4393d46b203c183d26f931e247f30d760b6ad0b (diff) | |
download | scummvm-rg350-4341a366410bc2f15d0001b69261a37d56016b10.tar.gz scummvm-rg350-4341a366410bc2f15d0001b69261a37d56016b10.tar.bz2 scummvm-rg350-4341a366410bc2f15d0001b69261a37d56016b10.zip |
Implement QuickHero walking.
Pressing Q during the game enables/disables faster walking; all animation
phases are flipped after one refresh instead of after given delay.
svn-id: r45748
Diffstat (limited to 'engines/draci/animation.h')
-rw-r--r-- | engines/draci/animation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/draci/animation.h b/engines/draci/animation.h index 1fe5d4c814..aff2680c37 100644 --- a/engines/draci/animation.h +++ b/engines/draci/animation.h @@ -101,6 +101,8 @@ public: Displacement getCurrentFrameDisplacement() const; // displacement of the current frame (includes _shift) Common::Point getCurrentFramePosition() const; // with displacement and shift applied + void supportsQuickAnimation(bool val) { _canBeQuick = val; } + int getIndex() const { return _index; } void setIndex(int index) { _index = index; } @@ -148,6 +150,8 @@ private: bool _looping; bool _paused; + bool _canBeQuick; + /** Array of frames of the animation. The animation object owns these pointers. */ Common::Array<Drawable *> _frames; |