public class Actions
extends java.lang.Object
Constructor and Description |
---|
Actions() |
Modifier and Type | Method and Description |
---|---|
static <T extends Action> |
action(java.lang.Class<T> type)
Returns a new or pooled action of the specified type.
|
static AddAction |
addAction(Action action) |
static AddAction |
addAction(Action action,
Actor targetActor) |
static AddListenerAction |
addListener(EventListener listener,
boolean capture) |
static AddListenerAction |
addListener(EventListener listener,
boolean capture,
Actor targetActor) |
static AfterAction |
after(Action action) |
static AlphaAction |
alpha(float a)
Sets the actor's alpha instantly.
|
static AlphaAction |
alpha(float a,
float duration)
Transitions from the alpha at the time this action starts to the specified alpha.
|
static AlphaAction |
alpha(float a,
float duration,
Interpolation interpolation)
Transitions from the alpha at the time this action starts to the specified alpha.
|
static ColorAction |
color(Color color)
Sets the actor's color instantly.
|
static ColorAction |
color(Color color,
float duration)
Transitions from the color at the time this action starts to the specified color.
|
static ColorAction |
color(Color color,
float duration,
Interpolation interpolation)
Transitions from the color at the time this action starts to the specified color.
|
static DelayAction |
delay(float duration) |
static DelayAction |
delay(float duration,
Action delayedAction) |
static AlphaAction |
fadeIn(float duration)
Transitions from the alpha at the time this action starts to an alpha of 1.
|
static AlphaAction |
fadeIn(float duration,
Interpolation interpolation)
Transitions from the alpha at the time this action starts to an alpha of 1.
|
static AlphaAction |
fadeOut(float duration)
Transitions from the alpha at the time this action starts to an alpha of 0.
|
static AlphaAction |
fadeOut(float duration,
Interpolation interpolation)
Transitions from the alpha at the time this action starts to an alpha of 0.
|
static RepeatAction |
forever(Action repeatedAction) |
static VisibleAction |
hide() |
static LayoutAction |
layout(boolean enabled) |
static MoveByAction |
moveBy(float amountX,
float amountY)
Moves the actor instantly.
|
static MoveByAction |
moveBy(float amountX,
float amountY,
float duration) |
static MoveByAction |
moveBy(float amountX,
float amountY,
float duration,
Interpolation interpolation) |
static MoveToAction |
moveTo(float x,
float y)
Moves the actor instantly.
|
static MoveToAction |
moveTo(float x,
float y,
float duration) |
static MoveToAction |
moveTo(float x,
float y,
float duration,
Interpolation interpolation) |
static MoveToAction |
moveToAligned(float x,
float y,
int alignment) |
static MoveToAction |
moveToAligned(float x,
float y,
int alignment,
float duration) |
static MoveToAction |
moveToAligned(float x,
float y,
int alignment,
float duration,
Interpolation interpolation) |
static ParallelAction |
parallel() |
static ParallelAction |
parallel(Action... actions) |
static ParallelAction |
parallel(Action action1) |
static ParallelAction |
parallel(Action action1,
Action action2) |
static ParallelAction |
parallel(Action action1,
Action action2,
Action action3) |
static ParallelAction |
parallel(Action action1,
Action action2,
Action action3,
Action action4) |
static ParallelAction |
parallel(Action action1,
Action action2,
Action action3,
Action action4,
Action action5) |
static RemoveAction |
removeAction(Action action) |
static RemoveAction |
removeAction(Action action,
Actor targetActor) |
static RemoveActorAction |
removeActor() |
static RemoveActorAction |
removeActor(Actor removeActor) |
static RemoveListenerAction |
removeListener(EventListener listener,
boolean capture) |
static RemoveListenerAction |
removeListener(EventListener listener,
boolean capture,
Actor targetActor) |
static RepeatAction |
repeat(int count,
Action repeatedAction) |
static RotateByAction |
rotateBy(float rotationAmount)
Rotates the actor instantly.
|
static RotateByAction |
rotateBy(float rotationAmount,
float duration) |
static RotateByAction |
rotateBy(float rotationAmount,
float duration,
Interpolation interpolation) |
static RotateToAction |
rotateTo(float rotation)
Rotates the actor instantly.
|
static RotateToAction |
rotateTo(float rotation,
float duration) |
static RotateToAction |
rotateTo(float rotation,
float duration,
Interpolation interpolation) |
static RunnableAction |
run(java.lang.Runnable runnable) |
static ScaleByAction |
scaleBy(float amountX,
float amountY)
Scales the actor instantly.
|
static ScaleByAction |
scaleBy(float amountX,
float amountY,
float duration) |
static ScaleByAction |
scaleBy(float amountX,
float amountY,
float duration,
Interpolation interpolation) |
static ScaleToAction |
scaleTo(float x,
float y)
Scales the actor instantly.
|
static ScaleToAction |
scaleTo(float x,
float y,
float duration) |
static ScaleToAction |
scaleTo(float x,
float y,
float duration,
Interpolation interpolation) |
static SequenceAction |
sequence() |
static SequenceAction |
sequence(Action... actions) |
static SequenceAction |
sequence(Action action1) |
static SequenceAction |
sequence(Action action1,
Action action2) |
static SequenceAction |
sequence(Action action1,
Action action2,
Action action3) |
static SequenceAction |
sequence(Action action1,
Action action2,
Action action3,
Action action4) |
static SequenceAction |
sequence(Action action1,
Action action2,
Action action3,
Action action4,
Action action5) |
static VisibleAction |
show() |
static SizeByAction |
sizeBy(float amountX,
float amountY)
Sizes the actor instantly.
|
static SizeByAction |
sizeBy(float amountX,
float amountY,
float duration) |
static SizeByAction |
sizeBy(float amountX,
float amountY,
float duration,
Interpolation interpolation) |
static SizeToAction |
sizeTo(float x,
float y)
Sizes the actor instantly.
|
static SizeToAction |
sizeTo(float x,
float y,
float duration) |
static SizeToAction |
sizeTo(float x,
float y,
float duration,
Interpolation interpolation) |
static Action |
targeting(Actor target,
Action action)
Sets the target of an action and returns the action.
|
static TimeScaleAction |
timeScale(float scale,
Action scaledAction) |
static TouchableAction |
touchable(Touchable touchable) |
static VisibleAction |
visible(boolean visible) |
public static <T extends Action> T action(java.lang.Class<T> type)
public static RemoveAction removeAction(Action action)
public static RemoveAction removeAction(Action action, Actor targetActor)
public static MoveToAction moveTo(float x, float y)
public static MoveToAction moveTo(float x, float y, float duration)
public static MoveToAction moveTo(float x, float y, float duration, @Null Interpolation interpolation)
public static MoveToAction moveToAligned(float x, float y, int alignment)
public static MoveToAction moveToAligned(float x, float y, int alignment, float duration)
public static MoveToAction moveToAligned(float x, float y, int alignment, float duration, @Null Interpolation interpolation)
public static MoveByAction moveBy(float amountX, float amountY)
public static MoveByAction moveBy(float amountX, float amountY, float duration)
public static MoveByAction moveBy(float amountX, float amountY, float duration, @Null Interpolation interpolation)
public static SizeToAction sizeTo(float x, float y)
public static SizeToAction sizeTo(float x, float y, float duration)
public static SizeToAction sizeTo(float x, float y, float duration, @Null Interpolation interpolation)
public static SizeByAction sizeBy(float amountX, float amountY)
public static SizeByAction sizeBy(float amountX, float amountY, float duration)
public static SizeByAction sizeBy(float amountX, float amountY, float duration, @Null Interpolation interpolation)
public static ScaleToAction scaleTo(float x, float y)
public static ScaleToAction scaleTo(float x, float y, float duration)
public static ScaleToAction scaleTo(float x, float y, float duration, @Null Interpolation interpolation)
public static ScaleByAction scaleBy(float amountX, float amountY)
public static ScaleByAction scaleBy(float amountX, float amountY, float duration)
public static ScaleByAction scaleBy(float amountX, float amountY, float duration, @Null Interpolation interpolation)
public static RotateToAction rotateTo(float rotation)
public static RotateToAction rotateTo(float rotation, float duration)
public static RotateToAction rotateTo(float rotation, float duration, @Null Interpolation interpolation)
public static RotateByAction rotateBy(float rotationAmount)
public static RotateByAction rotateBy(float rotationAmount, float duration)
public static RotateByAction rotateBy(float rotationAmount, float duration, @Null Interpolation interpolation)
public static ColorAction color(Color color)
public static ColorAction color(Color color, float duration)
public static ColorAction color(Color color, float duration, @Null Interpolation interpolation)
public static AlphaAction alpha(float a)
public static AlphaAction alpha(float a, float duration)
public static AlphaAction alpha(float a, float duration, @Null Interpolation interpolation)
public static AlphaAction fadeOut(float duration)
public static AlphaAction fadeOut(float duration, @Null Interpolation interpolation)
public static AlphaAction fadeIn(float duration)
public static AlphaAction fadeIn(float duration, @Null Interpolation interpolation)
public static VisibleAction show()
public static VisibleAction hide()
public static VisibleAction visible(boolean visible)
public static TouchableAction touchable(Touchable touchable)
public static RemoveActorAction removeActor()
public static RemoveActorAction removeActor(Actor removeActor)
public static DelayAction delay(float duration)
public static DelayAction delay(float duration, Action delayedAction)
public static TimeScaleAction timeScale(float scale, Action scaledAction)
public static SequenceAction sequence(Action action1)
public static SequenceAction sequence(Action action1, Action action2)
public static SequenceAction sequence(Action action1, Action action2, Action action3)
public static SequenceAction sequence(Action action1, Action action2, Action action3, Action action4)
public static SequenceAction sequence(Action action1, Action action2, Action action3, Action action4, Action action5)
public static SequenceAction sequence(Action... actions)
public static SequenceAction sequence()
public static ParallelAction parallel(Action action1)
public static ParallelAction parallel(Action action1, Action action2)
public static ParallelAction parallel(Action action1, Action action2, Action action3)
public static ParallelAction parallel(Action action1, Action action2, Action action3, Action action4)
public static ParallelAction parallel(Action action1, Action action2, Action action3, Action action4, Action action5)
public static ParallelAction parallel(Action... actions)
public static ParallelAction parallel()
public static RepeatAction repeat(int count, Action repeatedAction)
public static RepeatAction forever(Action repeatedAction)
public static RunnableAction run(java.lang.Runnable runnable)
public static LayoutAction layout(boolean enabled)
public static AfterAction after(Action action)
public static AddListenerAction addListener(EventListener listener, boolean capture)
public static AddListenerAction addListener(EventListener listener, boolean capture, Actor targetActor)
public static RemoveListenerAction removeListener(EventListener listener, boolean capture)
public static RemoveListenerAction removeListener(EventListener listener, boolean capture, Actor targetActor)