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