Skip to main content
Version: Next

Agent Action

Description

This is used to process actions for a specific agent and handles access to the Action Service.

Interface

Type
IAgentActionProcessor

Inherits

Type
N/A

Properties

NameType
agentIAgentService
actionServiceIActionService
lookingServiceILookingService
stateIActionProcessState
interactionServiceIInteractionService
mutatorServiceIMutationService
timerServiceITimerService
customStateAI_STATE

Public Methods

NameParametersReturn TypeDescription
SetActionIActionCommand commandbooleanSets a new action for the agent.
SetActionLocationIActionLocation actionLocationbooleanUsed to assign the goal position of the agent.
GetActionProcessStateN/AIActionProcessStateProvides the action process state.
GetActionN/AActionProvides the current action assigned to the agent.
HasActionN/AbooleanReturns if the agent currently has an action.
OnActionFinishbool successful, IBehaviourService controllerService, ITimerService timeServicebooleanReturns true if the action was successful.
UpdateIApplicatorService applicatorServiceboolean or nullReturns true/false on action complete. Null if still processing.
ResetN/AbooleanResets the action processor state.
GetCustomStateN/AAI_STATEReturns the custom state the agent is currently in or null if not.
SetupEndpointBehaviourIApplicatorService applicatorServiceIMutationServiceCalled to start initialisation of the endpoint behaviours.
SetupMutatorServiceIApplicatorService applicatorServicevoidCalled to start initialisation of the mutator service.