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
Properties
HasActionCompleted
public virtual bool HasActionCompleted { get; }
Property Value
NextOrder
protected virtual MovementOrder NextOrder { get; }
Property Value
Methods
GetScriptedFrameFlags(Agent)
protected virtual Agent.AIScriptedFrameFlags GetScriptedFrameFlags(Agent agent)
Parameters
agent
Agent
Returns
GetSuitableAgentForStandingPoint(UsableMachine, StandingPoint, IEnumerable<Agent>, List<Agent>)
public static Agent GetSuitableAgentForStandingPoint(UsableMachine usableMachine, StandingPoint standingPoint, IEnumerable<Agent> agents, List<Agent> usedAgents)
Parameters
usableMachine
UsableMachinestandingPoint
StandingPointagents
IEnumerable<Agent>usedAgents
List<Agent>
Returns
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
UsableMachinestandingPoint
StandingPointagents
List<(Agent, float)>usedAgents
List<Agent>weight
float
Returns
HandleAgentStopUsingStandingPoint(Agent, StandingPoint)
protected virtual void HandleAgentStopUsingStandingPoint(Agent agent, StandingPoint standingPoint)
Parameters
agent
AgentstandingPoint
StandingPoint
OnTick(Agent, Formation, Team, float)
protected virtual void OnTick(Agent agentToCompareTo, Formation formationToCompareTo, Team potentialUsersTeam, float dt)
Parameters
StopUsingStandingPoint(StandingPoint)
public void StopUsingStandingPoint(StandingPoint standingPoint)
Parameters
standingPoint
StandingPoint
TeleportUserAgentsToMachine(List<Agent>)
public virtual void TeleportUserAgentsToMachine(List<Agent> agentList)
Parameters
Tick(Agent, Formation, Team, float)
public void Tick(Agent agentToCompareTo, Formation formationToCompareTo, Team potentialUsersTeam, float dt)
Parameters
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).