#include <simpleanimation.h>
It hosts a looping animation without actions and directions.
Definition at line 36 of file simpleanimation.h.
Public Member Functions | |
| SimpleAnimation (Animation *animation) | |
| Creates a simple animation with an already created animation. | |
| SimpleAnimation (xmlNodePtr animationNode) | |
| Creates a simple animation that creates its animation from XML Data. | |
| ~SimpleAnimation () | |
| void | update (unsigned int timePassed) |
| bool | draw (Graphics *graphics, int posX, int posY) const |
| void | reset () |
| Resets the animation. | |
| Image * | getCurrentImage () const |
Private Attributes | |
| Animation * | mAnimation |
| The hosted animation. | |
| unsigned int | mAnimationTime |
| Time in game ticks the current frame is shown. | |
| unsigned int | mAnimationPhase |
| Index of current animation phase. | |
| Frame * | mCurrentFrame |
| Current animation phase. | |
| SimpleAnimation::SimpleAnimation | ( | Animation * | animation | ) |
Creates a simple animation with an already created animation.
Definition at line 31 of file simpleanimation.cpp.
| SimpleAnimation::SimpleAnimation | ( | xmlNodePtr | animationNode | ) |
Creates a simple animation that creates its animation from XML Data.
Definition at line 39 of file simpleanimation.cpp.
| SimpleAnimation::~SimpleAnimation | ( | ) |
Definition at line 153 of file simpleanimation.cpp.
| void SimpleAnimation::update | ( | unsigned int | timePassed | ) |
Definition at line 132 of file simpleanimation.cpp.
| bool SimpleAnimation::draw | ( | Graphics * | graphics, | |
| int | posX, | |||
| int | posY | |||
| ) | const |
Definition at line 116 of file simpleanimation.cpp.
| void SimpleAnimation::reset | ( | ) |
| Image * SimpleAnimation::getCurrentImage | ( | ) | const |
Definition at line 148 of file simpleanimation.cpp.
Animation* SimpleAnimation::mAnimation [private] |
unsigned int SimpleAnimation::mAnimationTime [private] |
unsigned int SimpleAnimation::mAnimationPhase [private] |
Frame* SimpleAnimation::mCurrentFrame [private] |
1.5.5