#include <Animator.h>
Inherited by PhysicsStep.
Inheritance diagram for Animator:
Public Member Functions | |
Animator (Object *obj, unsigned int frame) | |
virtual | ~Animator () |
virtual bool | animate (unsigned int frame)=0 |
Protected Attributes | |
Object * | mObject |
Object to animate. | |
unsigned int | mFrame |
Frame number. |
Definition at line 15 of file Animator.h.
Animator::Animator | ( | Object * | obj, | |
unsigned int | frame | |||
) | [inline] |
Constructor
obj | Object to animate | |
frame | Frame number when animation should start |
Definition at line 23 of file Animator.h.
virtual Animator::~Animator | ( | ) | [inline, virtual] |
Destructor
Definition at line 32 of file Animator.h.
virtual bool Animator::animate | ( | unsigned int | frame | ) | [pure virtual] |
Execute animation or do nothing if no animation should be done in given frame
frame | Current frame |
Implemented in PhysicsStep.
Object* Animator::mObject [protected] |
unsigned int Animator::mFrame [protected] |