E - type of the blackboard object that tasks use to read or modify game statepublic class Invert<E> extends Decorator<E>
Invert decorator will succeed if the wrapped task fails and will fail if the wrapped task succeeds.Task.Status| Constructor and Description |
|---|
Invert()
Creates an
Invert decorator with no child. |
Invert(Task<E> task)
Creates an
Invert 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.
|
addChildToTask, childRunning, copyTo, getChild, getChildCount, runCopyright © 2017. All rights reserved.