Class Actions

java.lang.Object
arc.scene.actions.Actions

public class Actions extends Object
Static convenience methods for using pooled actions, intended for static import.
  • Constructor Details

    • Actions

      public Actions()
  • Method Details

    • action

      public static <T extends Action> T action(Class<T> type, Prov<T> sup)
      Returns a new or pooled action of the specified type.
    • addAction

      public static AddAction addAction(Action action)
    • addAction

      public static AddAction addAction(Action action, Element targetActor)
    • removeAction

      public static RemoveAction removeAction(Action action)
    • removeAction

      public static RemoveAction removeAction(Action action, Element targetActor)
    • originCenter

      public static Action originCenter()
      Sets the origin to the center.
    • moveTo

      public static MoveToAction moveTo(float x, float y)
      Moves the actor instantly.
    • moveTo

      public static MoveToAction moveTo(float x, float y, float duration)
    • moveTo

      public static MoveToAction moveTo(float x, float y, float duration, Interp interpolation)
    • moveToAligned

      public static MoveToAction moveToAligned(float x, float y, int alignment)
    • moveToAligned

      public static MoveToAction moveToAligned(float x, float y, int alignment, float duration)
    • moveToAligned

      public static MoveToAction moveToAligned(float x, float y, int alignment, float duration, Interp interpolation)
    • moveBy

      public static MoveByAction moveBy(float amountX, float amountY)
      Moves the actor instantly.
    • moveBy

      public static MoveByAction moveBy(float amountX, float amountY, float duration)
    • translateTo

      public static RunnableAction translateTo(float amountX, float amountY)
    • translateBy

      public static TranslateByAction translateBy(float amountX, float amountY, float duration, Interp interpolation)
    • translateBy

      public static TranslateByAction translateBy(float amountX, float amountY)
    • translateBy

      public static TranslateByAction translateBy(float amountX, float amountY, float duration)
    • moveBy

      public static MoveByAction moveBy(float amountX, float amountY, float duration, Interp interpolation)
    • sizeTo

      public static SizeToAction sizeTo(float x, float y)
      Sizes the actor instantly.
    • sizeTo

      public static SizeToAction sizeTo(float x, float y, float duration)
    • sizeTo

      public static SizeToAction sizeTo(float x, float y, float duration, Interp interpolation)
    • sizeBy

      public static SizeByAction sizeBy(float amountX, float amountY)
      Sizes the actor instantly.
    • sizeBy

      public static SizeByAction sizeBy(float amountX, float amountY, float duration)
    • sizeBy

      public static SizeByAction sizeBy(float amountX, float amountY, float duration, Interp interpolation)
    • scaleTo

      public static ScaleToAction scaleTo(float x, float y)
      Scales the actor instantly.
    • scaleTo

      public static ScaleToAction scaleTo(float x, float y, float duration)
    • scaleTo

      public static ScaleToAction scaleTo(float x, float y, float duration, Interp interpolation)
    • scaleBy

      public static ScaleByAction scaleBy(float amountX, float amountY)
      Scales the actor instantly.
    • scaleBy

      public static ScaleByAction scaleBy(float amountX, float amountY, float duration)
    • scaleBy

      public static ScaleByAction scaleBy(float amountX, float amountY, float duration, Interp interpolation)
    • rotateTo

      public static RotateToAction rotateTo(float rotation)
      Rotates the actor instantly.
    • rotateTo

      public static RotateToAction rotateTo(float rotation, float duration)
    • rotateTo

      public static RotateToAction rotateTo(float rotation, float duration, Interp interpolation)
    • rotateBy

      public static RotateByAction rotateBy(float rotationAmount)
      Rotates the actor instantly.
    • rotateBy

      public static RotateByAction rotateBy(float rotationAmount, float duration)
    • rotateBy

      public static RotateByAction rotateBy(float rotationAmount, float duration, Interp interpolation)
    • color

      public static ColorAction color(Color color)
      Sets the actor's color instantly.
    • color

      public static ColorAction color(Color color, float duration)
      Transitions from the color at the time this action starts to the specified color.
    • color

      public static ColorAction color(Color color, float duration, Interp interpolation)
      Transitions from the color at the time this action starts to the specified color.
    • alpha

      public static AlphaAction alpha(float a)
      Sets the actor's alpha instantly.
    • alpha

      public static AlphaAction alpha(float a, float duration)
      Transitions from the alpha at the time this action starts to the specified alpha.
    • alpha

      public static AlphaAction alpha(float a, float duration, Interp interpolation)
      Transitions from the alpha at the time this action starts to the specified alpha.
    • fadeOut

      public static AlphaAction fadeOut(float duration)
      Transitions from the alpha at the time this action starts to an alpha of 0.
    • fadeOut

      public static AlphaAction fadeOut(float duration, Interp interpolation)
      Transitions from the alpha at the time this action starts to an alpha of 0.
    • fadeIn

      public static AlphaAction fadeIn(float duration)
      Transitions from the alpha at the time this action starts to an alpha of 1.
    • fadeIn

      public static AlphaAction fadeIn(float duration, Interp interpolation)
      Transitions from the alpha at the time this action starts to an alpha of 1.
    • show

      public static VisibleAction show()
    • hide

      public static VisibleAction hide()
    • visible

      public static VisibleAction visible(boolean visible)
    • touchable

      public static TouchableAction touchable(Touchable touchable)
    • remove

      public static RemoveActorAction remove()
    • remove

      public static RemoveActorAction remove(Element removeActor)
    • delay

      public static DelayAction delay(float duration)
    • delay

      public static DelayAction delay(float duration, Action delayedAction)
    • timeScale

      public static TimeScaleAction timeScale(float scale, Action scaledAction)
    • sequence

      public static SequenceAction sequence(Action action1)
    • sequence

      public static SequenceAction sequence(Action action1, Action action2)
    • sequence

      public static SequenceAction sequence(Action action1, Action action2, Action action3)
    • sequence

      public static SequenceAction sequence(Action action1, Action action2, Action action3, Action action4)
    • sequence

      public static SequenceAction sequence(Action action1, Action action2, Action action3, Action action4, Action action5)
    • sequence

      public static SequenceAction sequence(Action... actions)
    • sequence

      public static SequenceAction sequence()
    • parallel

      public static ParallelAction parallel(Action action1)
    • parallel

      public static ParallelAction parallel(Action action1, Action action2)
    • parallel

      public static ParallelAction parallel(Action action1, Action action2, Action action3)
    • parallel

      public static ParallelAction parallel(Action action1, Action action2, Action action3, Action action4)
    • parallel

      public static ParallelAction parallel(Action action1, Action action2, Action action3, Action action4, Action action5)
    • parallel

      public static ParallelAction parallel(Action... actions)
    • parallel

      public static ParallelAction parallel()
    • repeat

      public static RepeatAction repeat(int count, Action repeatedAction)
    • forever

      public static RepeatAction forever(Action repeatedAction)
    • run

      public static RunnableAction run(Runnable runnable)
    • layout

      public static LayoutAction layout(boolean enabled)
    • after

      public static AfterAction after(Action action)
    • addListener

      public static AddListenerAction addListener(EventListener listener, boolean capture)
    • addListener

      public static AddListenerAction addListener(EventListener listener, boolean capture, Element targetActor)
    • removeListener

      public static RemoveListenerAction removeListener(EventListener listener, boolean capture)
    • removeListener

      public static RemoveListenerAction removeListener(EventListener listener, boolean capture, Element targetActor)