|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.world.sector.actor.skeleton.animation.E3DAnimationKeyFrame
| Constructor Summary | |
E3DAnimationKeyFrame(E3DAnimationKeyFrame toCopyAnimationKeyFrame)
|
|
E3DAnimationKeyFrame(E3DEngine engine,
java.lang.String keyFrameID,
double frameLength)
Create a keyframe named keyFrameID and have the frame last frameLength seconds |
|
| Method Summary | |
void |
addAnimationCommand(E3DAnimationCommand command)
A command is a single action that will happen during the keyframe. |
java.util.ArrayList |
getCommands()
|
double |
getElapsedTime()
|
double |
getFrameLength()
|
java.lang.String |
getKeyFrameID()
|
void |
removeAnimationCommand(E3DAnimationCommand command)
Remove a command from the frame |
void |
reset()
Resets the elapsed time timer of the frame |
boolean |
update(double lastFrameTimeSeconds)
Returns true if it updates and hasn't yet expired Returns false if it is expired (and finished animating) and the next frame should be called |
| Methods inherited from class espresso3d.engine.base.E3DEngineItem |
getEngine, setEngine |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public E3DAnimationKeyFrame(E3DEngine engine,
java.lang.String keyFrameID,
double frameLength)
engine - keyFrameID - ID of the keyframeframeLength - Length of time the frame should take to complete (Seconds)public E3DAnimationKeyFrame(E3DAnimationKeyFrame toCopyAnimationKeyFrame)
| Method Detail |
public void addAnimationCommand(E3DAnimationCommand command)
command - public void removeAnimationCommand(E3DAnimationCommand command)
command - public void reset()
public java.lang.String getKeyFrameID()
public boolean update(double lastFrameTimeSeconds)
lastFrameTimeSeconds -
public java.util.ArrayList getCommands()
public double getElapsedTime()
public double getFrameLength()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||