JugiMap Framework
|
The standard animation player for playing animations via AnimationInstance objects. More...
#include <jmAnimationCommon.h>
Public Member Functions | |
AnimationInstance * | GetAnimationInstance () |
Returns the played animation instance. More... | |
int | GetCurrentAnimationTime () |
Returns the current animation time in milliseconds. More... | |
AnimationPlayerState | GetState () |
Returns the state of this player. More... | |
AKMeta * | GetActiveMetaKey () |
Returns the active meta key of the played animation or nullptr if none. More... | |
int | Play (AnimationInstance *_animationInstance) |
Play the given *_animationInstance*. More... | |
void | Pause () |
Pause this player. More... | |
void | Resume () |
Resume this player. More... | |
int | Stop () |
Stop the played animation and put the player into the idle state. More... | |
int | Update () |
Update the player. This command must be called in every update loop of the game logic. More... | |
void | SetParametersForCompletingLoop () |
This command modify the player parameters so that it will go into the AnimationPlayerState:STALLED state after the currently played loop. More... | |
AnimationBaseParameters & | GetAnimationBaseParameters () |
Returns a reference to the animation base parameters. More... | |
The standard animation player for playing animations via AnimationInstance objects.
|
inline |
Returns the played animation instance.
|
inline |
Returns the current animation time in milliseconds.
|
inline |
Returns the state of this player.
|
inline |
Returns the active meta key of the played animation or nullptr if none.
int Play | ( | AnimationInstance * | _animationInstance | ) |
Play the given *_animationInstance*.
void Pause | ( | ) |
Pause this player.
void Resume | ( | ) |
Resume this player.
int Stop | ( | ) |
Stop the played animation and put the player into the idle state.
To change the played animation there is no need to call this command. The Play command will stop any played animation before starting a new one.
int Update | ( | ) |
Update the player. This command must be called in every update loop of the game logic.
void SetParametersForCompletingLoop | ( | ) |
This command modify the player parameters so that it will go into the AnimationPlayerState:STALLED state after the currently played loop.
This command is used by the AnimationQueuePlayer.
|
inline |
Returns a reference to the animation base parameters.
Animation base parameters stored in the player are copy of parameters from animation instance.