#include <core/Animation.h>
Player of animation scripts.
Variables available inside an animation script are: "animation", "step", "num", and "elapsedMillis".
Example Script:
{
})
DO_ONCE({ frontHolo.play(
"Leia.bd2"); })
if (num == 100)
animation.rewind();
})
}
◆ anonymous enum
Enumerator |
---|
kWaiting | |
kRunning | |
kEnded | |
◆ AnimationPlayer() [1/2]
AnimationPlayer::AnimationPlayer |
( |
| ) |
|
|
inline |
◆ AnimationPlayer() [2/2]
◆ animate()
virtual void AnimationPlayer::animate |
( |
| ) |
|
|
inlineoverridevirtual |
Runs through a single step of any active animation script.
Implements AnimatedEvent.
◆ animateOnce()
Play the specified animation script once.
◆ end()
void AnimationPlayer::end |
( |
| ) |
|
|
inline |
Stop the active animation script.
◆ getCurrentTimeMillis()
long AnimationPlayer::getCurrentTimeMillis |
( |
| ) |
|
|
inline |
◆ gotoStep()
void AnimationPlayer::gotoStep |
( |
unsigned |
step | ) |
|
|
inline |
Go to to the specified step in the active animation script.
◆ nextStep()
void AnimationPlayer::nextStep |
( |
| ) |
|
|
inline |
Advance to the next step in the active animation script.
◆ previousStep()
void AnimationPlayer::previousStep |
( |
| ) |
|
|
inline |
Rewind to the previous step in the active animation script.
◆ reset()
void AnimationPlayer::reset |
( |
| ) |
|
|
inline |
Reset the animation player and stop any active animation script.
◆ rewind()
void AnimationPlayer::rewind |
( |
| ) |
|
|
inline |
Rewind to the beginning in the active animation script.
◆ fAnimation
◆ fFlags
uint8_t AnimationPlayer::fFlags |
|
protected |
◆ fNum
unsigned long AnimationPlayer::fNum |
|
protected |
◆ fNumSteps
unsigned AnimationPlayer::fNumSteps |
◆ fRepeatStep
bool AnimationPlayer::fRepeatStep |
◆ fServoSequencer
◆ fStartMillis
unsigned long AnimationPlayer::fStartMillis |
|
protected |
◆ fStep
unsigned AnimationPlayer::fStep |
◆ fStepMillis
unsigned long AnimationPlayer::fStepMillis |
|
protected |
The documentation for this class was generated from the following file: