E - type of the blackboard object that tasks use to read or modify game statepublic class UntilSuccess<E> extends LoopDecorator<E>
UntilSuccess decorator will repeat the wrapped task until that task succeeds, which makes the decorator succeed.
Notice that a wrapped task that always fails without entering the running status will cause an infinite loop in the current frame.
Task.Statusloop| Constructor and Description |
|---|
UntilSuccess()
Creates an
UntilSuccess decorator with no child. |
UntilSuccess(Task<E> task)
Creates an
UntilSuccess 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, getChildCountpublic UntilSuccess()
UntilSuccess decorator with no child.Copyright © 2017. All rights reserved.