From f8d64ae6bc47c0d1ea6efea45c28dd4902780ecb Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 15 Aug 2014 20:26:09 -0400 Subject: ACCESS: Added code to update animations each frame --- engines/access/animation.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'engines/access/animation.h') diff --git a/engines/access/animation.h b/engines/access/animation.h index c1b44a5621..f70aa3239d 100644 --- a/engines/access/animation.h +++ b/engines/access/animation.h @@ -49,14 +49,25 @@ public: void freeAnimationData(); void loadAnimations(const byte *data, int size); - void clearTimers(); - Animation *findAnimation(int animId); Animation *setAnimation(int animId); + void animate(int animId); + + /** + * Clear the list of currently active animations + */ + void clearTimers(); + + /** + * Add an animation to the list of currently animating ones + */ void setAnimTimer(Animation *anim); - void animate(int animId); + /** + * Update the timing of all currently active animation + */ + void updateTimers(); }; class AnimationResource { -- cgit v1.2.3