Table of Contents

Class UsableMachineAIBase

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public abstract class UsableMachineAIBase
Inheritance
UsableMachineAIBase
Derived
Inherited Members

Constructors

UsableMachineAIBase(UsableMachine)

protected UsableMachineAIBase(UsableMachine usableMachine)

Parameters

usableMachine UsableMachine

Fields

UsableMachine

protected readonly UsableMachine UsableMachine

Field Value

UsableMachine

Properties

HasActionCompleted

public virtual bool HasActionCompleted { get; }

Property Value

bool

NextOrder

protected virtual MovementOrder NextOrder { get; }

Property Value

MovementOrder

Methods

GetScriptedFrameFlags(Agent)

protected virtual Agent.AIScriptedFrameFlags GetScriptedFrameFlags(Agent agent)

Parameters

agent Agent

Returns

Agent.AIScriptedFrameFlags

GetSuitableAgentForStandingPoint(UsableMachine, StandingPoint, IEnumerable<Agent>, List<Agent>)

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

Parameters

usableMachine UsableMachine
standingPoint StandingPoint
agents IEnumerable<Agent>
usedAgents List<Agent>

Returns

Agent

GetSuitableAgentForStandingPoint(UsableMachine, StandingPoint, List<(Agent, float)>, List<Agent>, float)

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

Parameters

usableMachine UsableMachine
standingPoint StandingPoint
agents List<(Agent, float)>
usedAgents List<Agent>
weight float

Returns

Agent

HandleAgentStopUsingStandingPoint(Agent, StandingPoint)

protected virtual void HandleAgentStopUsingStandingPoint(Agent agent, StandingPoint standingPoint)

Parameters

agent Agent
standingPoint StandingPoint

OnTick(Agent, Formation, Team, float)

protected virtual void OnTick(Agent agentToCompareTo, Formation formationToCompareTo, Team potentialUsersTeam, float dt)

Parameters

agentToCompareTo Agent
formationToCompareTo Formation
potentialUsersTeam Team
dt float

StopUsingStandingPoint(StandingPoint)

public void StopUsingStandingPoint(StandingPoint standingPoint)

Parameters

standingPoint StandingPoint

TeleportUserAgentsToMachine(List<Agent>)

public virtual void TeleportUserAgentsToMachine(List<Agent> agentList)

Parameters

agentList List<Agent>

Tick(Agent, Formation, Team, float)

public void Tick(Agent agentToCompareTo, Formation formationToCompareTo, Team potentialUsersTeam, float dt)

Parameters

agentToCompareTo Agent
formationToCompareTo Formation
potentialUsersTeam Team
dt float

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).