BehaviorTree

BehaviorTree

Class BehaviorTree

Constructor

new BehaviorTree(rootopt, blackboardopt, propertiesopt, optionsopt)

Source:
Parameters:
Name Type Attributes Description
root BaseNode <optional>
blackboard Blackboard <optional>
properties Object <optional>
options BehaviorTreeOptions <optional>

Members

_blackboard :Blackboard

Source:
Type:
  • Blackboard

_root :BaseNode

Source:
Type:

blackboard :Blackboard

Source:
Type:
  • Blackboard

context :Context

Source:
Type:
  • Context

debug :Boolean

Source:
Type:
  • Boolean

description :string

Source:
Type:
  • string

id :string

Source:

unique id of node

Type:
  • string

name :string

Source:
Type:
  • string

options :BehaviorTreeOptions

Source:
Type:

properties :Object

Source:
Type:
  • Object

root :BaseNode

Source:
Type:

Methods

tick(contextopt) → {NodeStatus}

Source:
Parameters:
Name Type Attributes Description
context Context <optional>
Returns:
Type
NodeStatus