BehaviourService | AIControllerQueue aIControllerQueue | BehaviourService | A constructor for BehaviourService. |
AddController | IBehaviourApplicator candidate | void | Used to add a IBehaviourApplicator to the service. |
GetActiveController | N/A | IBehaviourApplicator | Returns the current IBehaviourApplicator in use. |
GetController | BehaviourType behaviourType | IBehaviourApplicator | Returns the controller for the behaviourType if present else null. |
UpsertCandidate | ControllerCandidate candidate | void | Adds or replaces ControllerCandidate to the queue. |
RemoveCandidate | BehaviourType behaviourType | void | Removes the ControllerCandidate in the queue for the behaviourType if present. |
GetControllerQueue | N/A | AIControllerQueue | Returns the queue. |
UpdateWeighting | IAgentService agent, float time, BehaviourType behaviourType = BehaviourType.Null | boolean | Triggers an update of weighting for each IBehaviourApplicator in queue. |
Update | IAgentService agent, float time | void | Evaluate the current queue and apply highest weighted behaviour to agent. |