Show:
Module: behavior3

Represent a tick (update) which holds context for the tree traversal.

Table of Contents

Constructor

Tick
(
  • tree
  • target
  • blackboard
)

Parameters:

  • tree BehaviorTree

    The behavior tree.

  • target

    Target object of the tick.

  • blackboard Blackboard

    The associated blackboard.

Methods

closeNode ()

Close the first node.

enterNode
(
  • node
)

Push the node to opened nodes.

Parameters:

  • node BaseNode

    The node to open.

Properties

blackboard

Blackboard

The blackboard context of the tick.

nodeCount

Number

Count the opened nodes.

openNodes

Array

Store currentl opened nodes.

target

The target object of the tick.

tree

BehaviorTree

The behavior tree.