public class ParallelAnimation extends AnimationElement
Constructor and Description |
---|
ParallelAnimation(AnimationElement... els)
Instantiates a new parallel animation.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimationElement(AnimationElement e)
Adds the animation element.
|
void |
addAnimationElement(java.util.Collection<AnimationElement> c)
Adds the animation element.
|
void |
addAnimationElements(AnimationElement... es)
Adds the animation elements.
|
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 |
updateAnimationState(float tpf)
Called each frame in the game loop.
|
enable, toString, updateState
public ParallelAnimation(AnimationElement... els)
els
- the elspublic void addAnimationElement(AnimationElement e)
e
- the epublic void addAnimationElement(java.util.Collection<AnimationElement> c)
c
- the cpublic void addAnimationElements(AnimationElement... es)
es
- the espublic 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 updateAnimationState(float tpf)
AnimationElement
updateAnimationState
in class AnimationElement