Class: BehaviourManager

(package) BehaviourManager()

Manages the behaviours for an agent.

Constructor

(package) new BehaviourManager()

Source:

Members

_accumulated

Accumulated force from behaviours to apply to agent
Source:

_behaviours :Array.<Behaviour>

A list of behaviors
Type:
Source:

Methods

add(behaviour)

Adds a behavior to the manager
Parameters:
Name Type Description
behaviour Behaviour
Source:

clear()

Removes all behaviours from a manager.
Source:

init(agent)

Boots up the behavoiurs of the agent that contains it.
Parameters:
Name Type Description
agent Agent
Source:

remove(behaviour)

Removes a behavior to the manager
Parameters:
Name Type Description
behaviour Behaviour
Source:

update(inv_dt)

Updates the behaviours of the agent and applies changes to agent.
Parameters:
Name Type Description
inv_dt number
Source: