behaviorTree
inline fun <E> behaviorTree(rootTask: Task<E>? = null, blackboard: E? = null, init: BehaviorTree<E>.() -> Unit = {}): BehaviorTree<E>
Creates a BehaviorTree.
Return
a new BehaviorTree instance.
Parameters
E
the type of the behavior tree's blackboard.
rootTask
the root task of the BehaviorTree.
blackboard
the blackboard of the BehaviorTree.
init
an optional inline block to configure the BehaviorTree.