Class RepeatAction
java.lang.Object
com.prineside.tdi2.scene2d.Action
com.prineside.tdi2.scene2d.actions.DelegateAction
com.prineside.tdi2.scene2d.actions.RepeatAction
- All Implemented Interfaces:
Pool.Poolable
Repeats an action a number of times or forever.
- Author:
- Nathan Sweet
-
Field Details
-
FOREVER
public static final int FOREVER- See Also:
-
-
Constructor Details
-
RepeatAction
public RepeatAction()
-
-
Method Details
-
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
-
setCount
public void setCount(int count) Sets the number of times to repeat. Can be set toFOREVER
. -
getCount
public int getCount()
-