org.jagatoo.loaders.models.cal3d.core
Class CalAnimationAction
java.lang.Object
org.jagatoo.loaders.models.cal3d.core.CalAnimation
org.jagatoo.loaders.models.cal3d.core.CalAnimationAction
public class CalAnimationAction
- extends CalAnimation
The animation action class.
| Fields inherited from class org.jagatoo.loaders.models.cal3d.core.CalAnimation |
coreAnimation, state, STATE_ASYNC, STATE_IN, STATE_NONE, STATE_OUT, STATE_STEADY, STATE_STOPPED, STATE_SYNC, time, timeFactor, type, TYPE_ACTION, TYPE_CYCLE, TYPE_NONE, TYPE_POSE, weight |
|
Method Summary |
void |
execute(float delayIn,
float delayOut)
Executes the animation action instance. |
void |
execute(float delayIn,
float delayOut,
float weightTarget,
boolean autoLock)
Executes the animation action instance. |
boolean |
update(float deltaTime)
Updates the animation action instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delayIn
protected float delayIn
delayOut
protected float delayOut
delayTarget
protected float delayTarget
weightTarget
protected float weightTarget
autoLock
protected boolean autoLock
CalAnimationAction
public CalAnimationAction(CalCoreAnimation coreAnimation)
- Constructs an animation action instance based on a core
animation.
This function is the default constructor of the animation action instance.
execute
public void execute(float delayIn,
float delayOut)
- Executes the animation action instance.
This function executes the animation action instance.
- Parameters:
delayIn - The time in seconds until the animation action instance
reaches the full weight from the beginning of its execution.delayOut - The time in seconds in which the animation action instance
reaches zero weight at the end of its execution.
execute
public void execute(float delayIn,
float delayOut,
float weightTarget,
boolean autoLock)
- Executes the animation action instance.
This function executes the animation action instance.
- Parameters:
delayIn - The time in seconds until the animation action instance
reaches the full weight from the beginning of its execution.delayOut - The time in seconds in which the animation action instance
reaches zero weight at the end of its execution.weightTarget - No comment for this. FIXME.autoLock - This prevents the Action from being reset and removed
on the last keyframe if true.
update
public boolean update(float deltaTime)
- Updates the animation action instance.
This function updates the animation action instance for a given amount of
time.
- Parameters:
deltaTime - The elapsed time in seconds since the last update.
- Returns:
- true if the animation action instance is still active
- false if the execution of the animation action instance has
ended