Members
_accumulated
Accumulated force from behaviours to apply to agent
- Source:
_behaviours :Array.<Behaviour>
A list of behaviors
Type:
- Array.<Behaviour>
- 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: