Skip to main content

Behaviour Processor

Description

Controls and manages the behaviour trees at runtime. Each behaviour type will have their own instance.

Interface

Type
IBehaviourProcessorService

Inherits

Type
N/A

Properties

NameType
dataIBehaviourTreeRepository
topTreeLvlinteger
repeatedTreeLvlinteger
positionIPosition

Public Methods

NameParametersReturn TypeDescription
SetupIModuleService moduleServiceIBehaviourTreeDataA static method used to setup static types from the module service.
BehaviourProcessorServiceIBehaviourTreeRepository data, int topTreeLvl, int repeatedLvl, IPosition positionBehaviourProcessorServiceA constructor for BehaviourProcessorService.
SetupIAgentService agentIBehaviourTreeDataInitialises the agents specific behaviour tree.
ProcessIBehaviourTreeData behaviourTreeData, IAgentService agentvoidSets the agents current action to the active node within the tree.
RollbackToLastLocationIBehaviourTreeData behaviourTreeData, IAgentService agentvoidRewinds from the current action to the last one with a location.
UpdateStateOnSuccessIBehaviourTreeData behaviourTreeData, IAgentService agentvoidProgresses the tree forwards to the next action.
UpdateStateOnFailIBehaviourTreeData behaviourTreeData, IAgentService agentvoidProgresses the tree forwards to the next action after a failed state.