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 booleandelegate(float delta)voidrestart()Sets the state of the action so it can be run again.voidsetTarget(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:ActionSets 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:
setTargetin classDelegateAction
-
restart
public void restart()
Description copied from class:ActionSets the state of the action so it can be run again.- Overrides:
restartin classDelegateAction
-
delegate
protected boolean delegate(float delta)
- Specified by:
delegatein classDelegateAction
-
-