E - type of the blackboard object that tasks use to read or modify game statepublic class RandomSequence<E> extends Sequence<E>
RandomSequence is a sequence task's variant that runs its children in a random order.Task.StatuscurrentChildIndex, randomChildrenchildren| Constructor and Description |
|---|
RandomSequence()
Creates a
RandomSequence branch with no children. |
RandomSequence(Array<Task<E>> tasks)
Creates a
RandomSequence branch with the given children. |
RandomSequence(Task<E>... tasks)
Creates a
RandomSequence branch with the given children. |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
This method will be called once before this task's first run.
|
childFail, childSuccesscancelRunningChildren, childRunning, copyTo, createRandomChildren, reset, runaddChildToTask, getChild, getChildCountpublic RandomSequence()
RandomSequence branch with no children.public RandomSequence(Array<Task<E>> tasks)
RandomSequence branch with the given children.tasks - the children of this taskpublic void start()
Taskstart in class SingleRunningChildBranch<E>Copyright © 2018. All rights reserved.