diff options
Diffstat (limited to 'src/simpleanimation.h')
-rw-r--r-- | src/simpleanimation.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/simpleanimation.h b/src/simpleanimation.h index 16ac2906..a639cf14 100644 --- a/src/simpleanimation.h +++ b/src/simpleanimation.h @@ -50,12 +50,22 @@ class SimpleAnimation void update(unsigned int timePassed); + bool draw(Graphics* graphics, int posX, int posY) const; + + /** + * Resets the animation. + */ + void reset(); + Image *getCurrentImage() const; private: /** The hosted animation. */ Animation *mAnimation; + /**< The last time update was called. */ + unsigned int mLastTime; + /** Time in game ticks the current frame is shown. */ unsigned int mAnimationTime; |