| Modifier and Type | Field and Description |
|---|---|
| protected Action |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | act(float delta)
Implements abstract com. Updates the action based on time. |
| protected abstract boolean | |
| public Action | |
| public void | reset()
Overrides com. Implements com. Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused. |
| public void | restart()
Overrides com. Sets the state of the action so it can be run again. |
| public void | |
| public void | setActor(Actor actor)
Overrides com. Sets the actor this action is attached to. |
| public void | setTarget(Actor target)
Overrides com. Sets the actor this action will manipulate. |
| public String | toString()
Overrides com. Returns a string representation of the object. |
| action | back to summary |
|---|---|
| protected Action action | |
| DelegateAction | back to summary |
|---|---|
| public DelegateAction() | |
| act | back to summary |
|---|---|
| public final boolean act(float delta) Implements abstract com. Doc from com. Updates the action based on time. Typically this is called each frame by | |
| delegate | back to summary |
|---|---|
| protected abstract boolean delegate(float delta) | |
| getAction | back to summary |
|---|---|
| public Action getAction() | |
| reset | back to summary |
|---|---|
| public void reset() Overrides com. Implements com. Doc from com. Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused. State required to be set for every usage of this action or computed during the action does not need to be reset.
The default implementation calls If a subclass has optional state, it must override this method, call super, and reset the optional state. | |
| restart | back to summary |
|---|---|
| public void restart() Overrides com. Doc from com. Sets the state of the action so it can be run again. | |
| setAction | back to summary |
|---|---|
| public void setAction(Action action) Sets the wrapped action. | |
| setActor | back to summary |
|---|---|
| public void setActor(Actor actor) Overrides com. Doc from com. Sets the actor this action is attached to. This also sets the
When set to null, if the action has a
This method is not typically a good place for an action subclass to query the actor's state because the action may not be
executed for some time, eg it may be | |
| setTarget | back to summary |
|---|---|
| public void setTarget(Actor target) Overrides com. Doc from com. Sets the actor this action will manipulate. If no target actor is set, | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |