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, updateStatepublic AnimationSequence()
public AnimationSequence(AnimationElement... elems)
elems - the elemspublic void addAnimationElement(AnimationElement elem)
elem - the elempublic void elementStart(float tpf)
AnimationElementelementStart in class AnimationElementpublic boolean isFinished()
AnimationElementisFinished in class AnimationElementpublic void reset()
AnimationElementisFinished()reset in class AnimationElementpublic void setRepeating(boolean b)
b - the new repeatingpublic void updateAnimationState(float tpf)
AnimationElementupdateAnimationState in class AnimationElement