public class AfterAction extends DelegateAction
action| Constructor and Description |
|---|
AfterAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
act(float delta)
Updates the action based on time.
|
void |
restart()
Sets the state of the action so it can be run again.
|
void |
setActor(Actor actor)
Sets the actor this action will be used for.
|
getAction, reset, setAction, toStringpublic void setActor(Actor actor)
Actionpool
then the action is returned to the pool (which calls Action.reset()) and the pool is set to null.
If the action does not have a pool, Action.reset() is called.
This method is not typically a good place for a subclass to query the actor's state because the action may not be executed
for some time, eg it may be delayed. The actor's state is best queried in the first call to
Action.act(float). For a TemporalAction, use TemporalAction#begin().
setActor in class DelegateActionpublic void restart()
Actionrestart in class DelegateActionpublic boolean act(float delta)
ActionActor.act(float).