public class AnimationSequence extends AnimationElement
Constructor and Description |
---|
AnimationSequence()
Instantiates a new animation sequence.
|
AnimationSequence(AnimationElement... elems)
Instantiates a new animation sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimationElement(AnimationElement elem)
Adds the animation element.
|
void |
elementStart(float tpf)
Called on the first
|
boolean |
isFinished()
When this method returns true, the animation element will be reset.
|
void |
reset()
Called when the animation element is finished.
|
void |
setRepeating(boolean b)
Sets the repeating.
|
void |
updateAnimationState(float tpf)
Called each frame in the game loop.
|
enable, toString, updateState
public AnimationSequence()
public AnimationSequence(AnimationElement... elems)
elems
- the elemspublic void addAnimationElement(AnimationElement elem)
elem
- the elempublic void elementStart(float tpf)
AnimationElement
elementStart
in class AnimationElement
public boolean isFinished()
AnimationElement
isFinished
in class AnimationElement
public void reset()
AnimationElement
isFinished()
reset
in class AnimationElement
public void setRepeating(boolean b)
b
- the new repeatingpublic void updateAnimationState(float tpf)
AnimationElement
updateAnimationState
in class AnimationElement