Class AfterAction
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.Action
-
- com.badlogic.gdx.scenes.scene2d.actions.DelegateAction
-
- com.badlogic.gdx.scenes.scene2d.actions.AfterAction
-
- All Implemented Interfaces:
Pool.Poolable
public class AfterAction extends DelegateAction
Executes an action only after all other actions on the actor at the time this action's target was set have finished.
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.scenes.scene2d.actions.DelegateAction
action
-
-
Constructor Summary
Constructors Constructor Description AfterAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
delegate(float delta)
void
restart()
Sets the state of the action so it can be run again.void
setTarget(Actor target)
Sets the actor this action will manipulate.-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.actions.DelegateAction
act, getAction, reset, setAction, setActor, toString
-
-
-
-
Method Detail
-
setTarget
public void setTarget(Actor target)
Description copied from class:Action
Sets the actor this action will manipulate. If no target actor is set,Action.setActor(Actor)
will set the target actor when the action is added to an actor.- Overrides:
setTarget
in classDelegateAction
-
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
-
delegate
protected boolean delegate(float delta)
- Specified by:
delegate
in classDelegateAction
-
-