The BT class represents a behavior tree instance.

Hierarchy

  • BT

Constructors

  • Creates a new instance of the BT class.

    Parameters

    • inst: any

      The instance associated with the behavior tree.

    • root: BehaviorNode

      The root node of the behavior tree.

    Returns BT

Properties

inst: any

The instance associated with the behavior tree.

The root node of the behavior tree.

forceupdate: boolean = false

A flag indicating whether the behavior tree should be force updated.

Methods

  • Gets the sleep time of the behavior tree.

    Returns null | number

    The sleep time of the behavior tree, or null if the behavior tree is not sleeping.

  • Returns a string representation of the behavior tree.

    Returns string

    A string representation of the behavior tree.