E - type of the blackboard object that tasks use to read or modify game statepublic class UntilFail<E> extends LoopDecorator<E>
UntilFail decorator will repeat the wrapped task until that task fails, which makes the decorator succeed.
Notice that a wrapped task that always succeeds without entering the running status will cause an infinite loop in the current frame.
Task.Statusloop| Constructor and Description |
|---|
UntilFail()
Creates an
UntilFail decorator with no child. |
UntilFail(Task<E> task)
Creates an
UntilFail decorator with the given child. |
| Modifier and Type | Method and Description |
|---|---|
void |
childFail(Task<E> runningTask)
This method will be called when one of the children of this task fails.
|
void |
childSuccess(Task<E> runningTask)
This method will be called when one of the children of this task succeeds.
|
childRunning, condition, runaddChildToTask, copyTo, getChild, getChildCountCopyright © 2018. All rights reserved.