handle(Event) returns true.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv final Class | |
| private final EventListener | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | act(float delta)
Implements abstract com. Updates the action based on time. |
| public abstract boolean | |
| public boolean | |
| public void | restart()
Overrides com. Sets the state of the action so it can be run again. |
| public void | |
| public void | setTarget(Actor newTarget)
Overrides com. Sets the actor this action will manipulate. |
| active | back to summary |
|---|---|
| pack-priv boolean active | |
| eventClass | back to summary |
|---|---|
| pack-priv final Class<? extends T> eventClass | |
| listener | back to summary |
|---|---|
| private final EventListener listener | |
| result | back to summary |
|---|---|
| pack-priv boolean result | |
| EventAction | back to summary |
|---|---|
| public EventAction(Class<? extends T> eventClass) | |
| act | back to summary |
|---|---|
| public boolean act(float delta) Implements abstract com. Doc from com. Updates the action based on time. Typically this is called each frame by | |
| handle | back to summary |
|---|---|
| public abstract boolean handle(T event) Called when the specific type of event occurs on the actor.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() | |
| restart | back to summary |
|---|---|
| public void restart() Overrides com. Doc from com. Sets the state of the action so it can be run again. | |
| setActive | back to summary |
|---|---|
| public void setActive(boolean active) | |
| setTarget | back to summary |
|---|---|
| public void setTarget(Actor newTarget) Overrides com. Doc from com. Sets the actor this action will manipulate. If no target actor is set, | |