25 #ifndef GRAPHICS_AURORA_ANIMATIONCHANNEL_H 26 #define GRAPHICS_AURORA_ANIMATIONCHANNEL_H 107 #endif // GRAPHICS_AURORA_ANIMATIONCHANNEL_H DefaultAnimations _defaultAnimations
void playAnimation(const Common::UString &anim, bool restart=true, float length=0.0f, float speed=1.0f)
Play a named animation.
float _animationLoopTime
The time the current loop of the current animation has played.
float _animationSpeed
The speed the current animation should run at.
float _animationTime
The time the current animation has played.
A class holding an UTF-8 string.
std::list< DefaultAnimation > DefaultAnimations
void addDefaultAnimation(const Common::UString &name, uint8 probability)
float _animationLoopLength
The length of one loop of the current animation.
float _animationLength
The time the current animation should run for.
void playDefaultAnimation()
Common::Semaphore _manageSem
void manageAnimations(float dt)
Animation * _currentAnimation
The currently playing animation.
void playDefaultAnimationInternal()
Animation * _nextAnimation
The animation that's scheduled next.
AnimationChannel(Model *model)
std::vector< ModelNode * > _modelNodeMap
uint8 probability
The probability (in percent) this animation is selected.
void clearDefaultAnimations()
void playAnimationCount(const Common::UString &anim, bool restart=true, int32 loopCount=0)
Play a named animation a number of loop iterations.
Animation * selectDefaultAnimation()
void setCurrentAnimation(Animation *anim)