Animates a sprite given the Animation. More...
Inherits ActionInterval.
Public Member Functions | |
void | setAnimation (Animation *animation) |
Sets the Animation object to be animated. More... | |
Animation * | getAnimation () |
returns the Animation object that is being animated More... | |
int | getCurrentFrameIndex () |
Gets the index of current frame's index. More... | |
virtual Animate * | clone () const override |
override ActionInterval . | |
virtual Animate * | reverse () const override |
override Action . | |
![]() | |
float | getElapsed (void) |
How many seconds had elapsed since the actions started to run. More... | |
void | setAmplitudeRate (float amp) |
Sets the amplitude rate, extension in GridAction. More... | |
float | getAmplitudeRate (void) |
Gets the ampliture rate, extension in GridAction. More... | |
virtual bool | isDone (void) const override |
override Action . | |
Static Public Member Functions | |
static Animate * | create (Animation *animation) |
Creates the action with an Animation and will restore the original frame when the animation is over. More... | |
Additional Inherited Members | |
![]() | |
bool | initWithDuration (float d) |
initializes the action with the duration. More... | |
Animates a sprite given the Animation.
void setAnimation | ( | Animation * | animation | ) |
Sets the Animation object to be animated.
certain animation.
|
inline |
returns the Animation object that is being animated
Gets the animation object that is being animated.
|
inline |
Gets the index of current frame's index.
int the index of current frame.