BehaviorTreeNodeAction

BehaviorTreeNodeAction

Creates behavior tree action nodes.

Constructor

new BehaviorTreeNodeAction($handler)

Description:
  • Creates a new behavior tree action node.
Source:
Example
const action = new BehaviorTreeNodeAction(handler);

const tree = new BehaviorTree(action);

const success = tree.tick(timetick);
Parameters:
Name Type Description
$handler TypeHandlerAction The handler.

Methods

tick($timetick) → {boolean}

Description:
  • Updates the behavior tree by one tick update.
Source:
Parameters:
Name Type Description
$timetick number The tick duration (in ms).
Returns:
Type
boolean

Type Definitions

(protected) TypeHandlerAction($timetick) → {boolean}

Source:
Parameters:
Name Type Description
$timetick number The tick duration (in ms).
Returns:
Type
boolean