SequenceNode

public final class SequenceNode extends Composite

Composite Node A sequence node will run its children until 1 fails. If a child fails, the sequence will report failure. If all the nodes run and succeed, the sequence will report success.

Constructors

SequenceNode
Link copied to clipboard
SequenceNode SequenceNode(String _name)

Functions

getChildren
Link copied to clipboard
final <ERROR CLASS> getChildren()
getName
Link copied to clipboard
String getName()
getTreeString
Link copied to clipboard
String getTreeString(String prefix)
initNode
Link copied to clipboard
T initNode<T extends IBehaviorNode>(String name, T node, Function1<T, Unit> init)
setChildren
Link copied to clipboard
final Unit setChildren(<ERROR CLASS> children)
setName
Link copied to clipboard
Unit setName(String name)
tick
Link copied to clipboard
BehaviorTreeStatus tick()

Properties

children
Link copied to clipboard
private <ERROR CLASS> children
name
Link copied to clipboard
private String name