The queue animation player for playing animations via animationInstance objects.
More...
#include <jmAnimationCommon.h>
The queue animation player for playing animations via animationInstance objects.
The queue player can delay a new animation in order for the old animation to complete its loop. There can be up to five animations in queue; if there are more the oldest waiting will be removed. The behavior that an animation complete its loop before ending is set by AnimationInstance::SetCompleteLoops command. The goal of this behavior is to allow designing smooth transition beetwen animations. The AnimationQueuePlayer objects are used for playing sub-animations.
◆ GetPlayer()
◆ GetAnimationInstance()
Returns the played animation instance.
◆ GetCurrentAnimationTime()
int GetCurrentAnimationTime |
( |
| ) |
|
|
inline |
Returns the current animation time in milliseconds.
◆ GetState()
Returns the state of this player.
◆ GetActiveMetaKey()
AKMeta* GetActiveMetaKey |
( |
| ) |
|
|
inline |
Returns the active meta key of the played animation or nullptr if none.
◆ Play()
◆ Update()
Update the player. This command must be called in every update loop of the game logic.
◆ Pause()
◆ Resume()
◆ Stop()
Stop the played animation, clear the queue 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.
The documentation for this class was generated from the following files:
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmAnimationCommon.h
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmAnimationCommon.cpp