public abstract class AnimationElement
extends java.lang.Object
Constructor and Description |
---|
AnimationElement() |
Modifier and Type | Method and Description |
---|---|
abstract void |
elementStart(float tpf)
Called on the first
|
void |
enable(boolean b)
Enable.
|
abstract boolean |
isFinished()
When this method returns true, the animation element will be reset.
|
abstract void |
reset()
Called when the animation element is finished.
|
java.lang.String |
toString() |
abstract void |
updateAnimationState(float tpf)
Called each frame in the game loop.
|
void |
updateState(float tpf)
Called by the AnimationSystem on each frame.
|
public abstract void elementStart(float tpf)
tpf
- public void enable(boolean b)
b
- the bpublic abstract boolean isFinished()
public abstract void reset()
isFinished()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void updateAnimationState(float tpf)
tpf
- public void updateState(float tpf)
elementStart
and updateAnimationState
as
necessary.tpf
-