SelectorNode

public final class SelectorNode extends Composite

Composite Node A selector node will run its children until 1 succeeds. If a child succeeds, the selector will report success. If all the children run and fail, the selector will report failure.

Constructors

SelectorNode
Link copied to clipboard
SelectorNode SelectorNode(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