E - type of the blackboard object that tasks use to read or modify game statepublic class RandomSelector<E> extends Selector<E>
RandomSelector is a selector task's variant that runs its children in a random order.Task.StatuscurrentChildIndex, randomChildrenchildren| Constructor and Description |
|---|
RandomSelector()
Creates a
RandomSelector branch with no children. |
RandomSelector(Array<Task<E>> tasks)
Creates a
RandomSelector branch with the given children. |
RandomSelector(Task<E>... tasks)
Creates a
RandomSelector 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 RandomSelector()
RandomSelector branch with no children.public RandomSelector(Task<E>... tasks)
RandomSelector branch with the given children.tasks - the children of this taskpublic void start()
Taskstart in class SingleRunningChildBranch<E>Copyright © 2017. All rights reserved.