public abstract class Action extends java.lang.Object implements JmeCloneable, Tween
Modifier | Constructor and Description |
---|---|
protected |
Action(Tween... tweens) |
Modifier and Type | Method and Description |
---|---|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Callback from
Cloner to convert this
shallow-cloned action into a deep-cloned one, using the specified cloner
and original to resolve copied fields. |
double |
getLength()
Returns the length of the tween.
|
AnimationMask |
getMask() |
double |
getSpeed() |
protected boolean |
isForward() |
Action |
jmeClone()
Create a shallow clone for the JME cloner.
|
protected void |
setForward(boolean forward) |
void |
setLength(double length)
Alter the length (duration) of this Action.
|
void |
setMask(AnimationMask mask) |
void |
setSpeed(double speed) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interpolate
protected Action[] actions
protected Action(Tween... tweens)
public double getLength()
Tween
public void setLength(double length)
length
- the desired length (in unscaled seconds, default=0)public double getSpeed()
public void setSpeed(double speed)
public AnimationMask getMask()
public void setMask(AnimationMask mask)
protected boolean isForward()
protected void setForward(boolean forward)
public Action jmeClone()
jmeClone
in interface JmeCloneable
public void cloneFields(Cloner cloner, java.lang.Object original)
Cloner
to convert this
shallow-cloned action into a deep-cloned one, using the specified cloner
and original to resolve copied fields.cloneFields
in interface JmeCloneable
cloner
- the cloner that's cloning this action (not null)original
- the action from which this action was shallow-cloned
(unused)