public class AnimationState
extends com.jme3.app.state.BaseAppState
| Modifier and Type | Field and Description |
|---|---|
static double |
NANOS_TO_SECONDS |
| Constructor and Description |
|---|
AnimationState() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Animation> |
add(T anim)
Begins executing the specified animation.
|
TweenAnimation |
add(Tween... sequence)
Creates a TweenAnimation from the specified tween or
tweens.
|
void |
cancel(Animation anim)
Cancels a currently running animation.
|
protected void |
cleanup(com.jme3.app.Application app) |
static AnimationState |
getDefaultInstance()
Returns the default animation state instance.
|
protected void |
initialize(com.jme3.app.Application app) |
boolean |
isRunning(Animation anim)
Returns true if the specified animation object is
currently running, ie: will be executed this frame.
|
protected void |
onDisable() |
protected void |
onEnable() |
protected void |
remove(Animation anim) |
void |
update(float tpf) |
public static final double NANOS_TO_SECONDS
public static AnimationState getDefaultInstance()
public boolean isRunning(Animation anim)
public <T extends Animation> T add(T anim)
public TweenAnimation add(Tween... sequence)
public void cancel(Animation anim)
protected void remove(Animation anim)
protected void initialize(com.jme3.app.Application app)
initialize in class com.jme3.app.state.BaseAppStateprotected void cleanup(com.jme3.app.Application app)
cleanup in class com.jme3.app.state.BaseAppStateprotected void onEnable()
onEnable in class com.jme3.app.state.BaseAppStatepublic void update(float tpf)
update in interface com.jme3.app.state.AppStateupdate in class com.jme3.app.state.BaseAppStateprotected void onDisable()
onDisable in class com.jme3.app.state.BaseAppState