A new Tick object is instantiated every tick by BehaviorTree. It is passed as parameter to the nodes through the tree during the traversal.
The role of the Tick class is to store the instances of tree, debug, target and blackboard. So, all nodes can access these informations.
For internal uses, the Tick also is useful to store the open node after the
tick signal, in order to let
BehaviorTree to keep track and close them
This class also makes a bridge between nodes and the debug, passing the node state to the debug if the last is provided.
Callback when closing a node (called by BaseNode).
Called when entering a node (called by BaseNode).
Callback when exiting a node (called by BaseNode).
Callback when opening a node (called by BaseNode).
Callback when ticking a node (called by BaseNode).
The number of nodes entered during the tick. Update during the tree traversal.
The list of open nodes. Update during the tree traversal.
The blackboard reference.
The debug reference.
The target object reference.
The tree reference.