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.Status
currentChildIndex, randomChildren
children
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, childSuccess
cancelRunningChildren, childRunning, copyTo, createRandomChildren, reset, run
addChildToTask, getChild, getChildCount
public 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()
Task
start
in class SingleRunningChildBranch<E>
Copyright © 2018. All rights reserved.