Runnable. Alternatively, the run() method can be overridden instead of setting a
runnable.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Runnable |
| 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 Runnable | |
| 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 |
| ran | back to summary |
|---|---|
| private boolean ran | |
| runnable | back to summary |
|---|---|
| private Runnable runnable | |
| RunnableAction | back to summary |
|---|---|
| public RunnableAction() | |
| 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 | |
| getRunnable | back to summary |
|---|---|
| public Runnable getRunnable() | |
| 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. | |
| run | back to summary |
|---|---|
| public void run() Called to run the runnable. | |
| setRunnable | back to summary |
|---|---|
| public void setRunnable(Runnable runnable) | |