Class Action

All Implemented Interfaces:
Tween, JmeCloneable, Cloneable
Direct Known Subclasses:
BaseAction, BlendableAction

public abstract class Action extends Object implements JmeCloneable, Tween
  • Field Details

    • actions

      protected Action[] actions
  • Constructor Details

    • Action

      protected Action(Tween... tweens)
  • Method Details

    • getLength

      public double getLength()
      Description copied from interface: Tween
      Returns the length of the tween. If 't' represents time in seconds then this is the notional time in seconds that the tween will run. Note: all the caveats are because tweens may be externally scaled in such a way that 't' no longer represents actual time.
      Specified by:
      getLength in interface Tween
      the duration (in de-scaled seconds)
    • setLength

      public void setLength(double length)
      Alter the length (duration) of this Action. This can be used to extend or truncate an Action.
      length - the desired length (in unscaled seconds, default=0)
    • getSpeed

      public double getSpeed()
    • setSpeed

      public void setSpeed(double speed)
    • getMask

      public AnimationMask getMask()
    • setMask

      public void setMask(AnimationMask mask)
    • isForward

      protected boolean isForward()
    • setForward

      protected void setForward(boolean forward)
    • jmeClone

      public Action jmeClone()
      Create a shallow clone for the JME cloner.
      Specified by:
      jmeClone in interface JmeCloneable
      a new action (not null)
    • cloneFields

      public void cloneFields(Cloner cloner, 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.
      Specified by:
      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)