public class MoveItem extends AnimationElement
| Constructor and Description |
|---|
MoveItem(com.jme3.math.Vector2f from,
com.jme3.math.Vector2f to,
float inSeconds,
IItem item,
boolean inWorldCoords)
Instantiates a new move item.
|
| Modifier and Type | Method and Description |
|---|---|
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, updateStatepublic MoveItem(com.jme3.math.Vector2f from,
com.jme3.math.Vector2f to,
float inSeconds,
IItem item,
boolean inWorldCoords)
from - the fromto - the toinSeconds - the in secondsitem - the iteminWorldCoords - the in world coordspublic void elementStart(float tpf)
AnimationElementelementStart in class AnimationElementpublic boolean isFinished()
AnimationElementisFinished in class AnimationElementpublic void reset()
AnimationElementisFinished()reset in class AnimationElementpublic void updateAnimationState(float tpf)
AnimationElementupdateAnimationState in class AnimationElement