Package arc.scene.actions
Class RepeatAction
java.lang.Object
arc.scene.Action
arc.scene.actions.DelegateAction
arc.scene.actions.RepeatAction
- All Implemented Interfaces:
Pool.Poolable
Repeats an action a number of times or forever.
-
Field Summary
Fields inherited from class arc.scene.actions.DelegateAction
action
-
Constructor Summary
-
Method Summary
-
Field Details
-
FOREVER
public static final int FOREVER- See Also:
-
-
Constructor Details
-
RepeatAction
public RepeatAction()
-
-
Method Details
-
delegate
protected boolean delegate(float delta) - Specified by:
delegate
in classDelegateAction
-
finish
public void finish()Causes the action to not repeat again. -
restart
public void restart()Description copied from class:Action
Sets the state of the action so it can be run again.- Overrides:
restart
in classDelegateAction
-
getCount
public int getCount() -
setCount
public void setCount(int count) Sets the number of times to repeat. Can be set toFOREVER
.
-