M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.UsableMachineAIBase Class Reference

Inherited by SandBox.AI.PassageAI, SandBox.AI.UsablePlaceAI, TaleWorlds.MountAndBlade.BatteringRamAI, TaleWorlds.MountAndBlade.CastleGateAI, TaleWorlds.MountAndBlade.RangedSiegeWeaponAi, TaleWorlds.MountAndBlade.SiegeLadderAI, TaleWorlds.MountAndBlade.SiegeTowerAI, and TaleWorlds.MountAndBlade.StonePileAI.

Public Member Functions

void Tick (Func< Agent, bool > isAgentManagedByThisMachineAI, Team potentialUsersTeam, float dt)
 
virtual void TeleportUserAgentsToMachine (List< Agent > agentList)
 
void StopUsingStandingPoint (StandingPoint standingPoint)
 

Static Public Member Functions

static Agent GetSuitableAgentForStandingPoint (UsableMachine usableMachine, StandingPoint standingPoint, IEnumerable< Agent > agents, List< Agent > usedAgents)
 
static Agent GetSuitableAgentForStandingPoint (UsableMachine usableMachine, StandingPoint standingPoint, IEnumerable< AgentValuePair< float > > agents, List< Agent > usedAgents, float weight)
 

Protected Member Functions

 UsableMachineAIBase (UsableMachine usableMachine)
 
virtual void OnTick (Func< Agent, bool > isAgentManagedByThisMachineAI, Team potentialUsersTeam, float dt)
 
virtual void HandleAgentStopUsingStandingPoint (Agent agent, StandingPoint standingPoint)
 

Protected Attributes

readonly UsableMachine UsableMachine
 The object which ai agents are/will be using. More...
 

Properties

virtual bool HasActionCompleted [get]
 
virtual MovementOrder NextOrder [get]
 The next action the ai agents will be ordered to do when this ai component's actions have been completed. More...
 

Constructor & Destructor Documentation

◆ UsableMachineAIBase()

TaleWorlds.MountAndBlade.UsableMachineAIBase.UsableMachineAIBase ( UsableMachine  usableMachine)
protected

Member Function Documentation

◆ Tick()

void TaleWorlds.MountAndBlade.UsableMachineAIBase.Tick ( Func< Agent, bool >  isAgentManagedByThisMachineAI,
Team  potentialUsersTeam,
float  dt 
)

◆ OnTick()

virtual void TaleWorlds.MountAndBlade.UsableMachineAIBase.OnTick ( Func< Agent, bool >  isAgentManagedByThisMachineAI,
Team  potentialUsersTeam,
float  dt 
)
protectedvirtual

◆ GetSuitableAgentForStandingPoint() [1/2]

static Agent TaleWorlds.MountAndBlade.UsableMachineAIBase.GetSuitableAgentForStandingPoint ( UsableMachine  usableMachine,
StandingPoint  standingPoint,
IEnumerable< Agent agents,
List< Agent usedAgents 
)
static

◆ GetSuitableAgentForStandingPoint() [2/2]

static Agent TaleWorlds.MountAndBlade.UsableMachineAIBase.GetSuitableAgentForStandingPoint ( UsableMachine  usableMachine,
StandingPoint  standingPoint,
IEnumerable< AgentValuePair< float > >  agents,
List< Agent usedAgents,
float  weight 
)
static

◆ TeleportUserAgentsToMachine()

virtual void TaleWorlds.MountAndBlade.UsableMachineAIBase.TeleportUserAgentsToMachine ( List< Agent agentList)
virtual

◆ StopUsingStandingPoint()

void TaleWorlds.MountAndBlade.UsableMachineAIBase.StopUsingStandingPoint ( StandingPoint  standingPoint)

◆ HandleAgentStopUsingStandingPoint()

virtual void TaleWorlds.MountAndBlade.UsableMachineAIBase.HandleAgentStopUsingStandingPoint ( Agent  agent,
StandingPoint  standingPoint 
)
protectedvirtual

Member Data Documentation

◆ UsableMachine

readonly UsableMachine TaleWorlds.MountAndBlade.UsableMachineAIBase.UsableMachine
protected

Property Documentation

◆ HasActionCompleted

virtual bool TaleWorlds.MountAndBlade.UsableMachineAIBase.HasActionCompleted
get

◆ NextOrder

virtual MovementOrder TaleWorlds.MountAndBlade.UsableMachineAIBase.NextOrder
getprotected