Table of Contents

Class AttackEntityOrderDetachment

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class AttackEntityOrderDetachment : IDetachment
Inheritance
AttackEntityOrderDetachment
Implements
Inherited Members

Constructors

AttackEntityOrderDetachment(GameEntity)

public AttackEntityOrderDetachment(GameEntity targetEntity)

Parameters

targetEntity GameEntity

Properties

IsActive

public bool IsActive { get; }

Property Value

bool

IsLoose

public bool IsLoose { get; }

Property Value

bool

UserFormations

public MBReadOnlyList<Formation> UserFormations { get; }

Property Value

MBReadOnlyList<Formation>

Methods

AddAgent(Agent, int)

public void AddAgent(Agent agent, int slotIndex)

Parameters

agent Agent
slotIndex int

AddAgentAtSlotIndex(Agent, int)

public void AddAgentAtSlotIndex(Agent agent, int slotIndex)

Parameters

agent Agent
slotIndex int

GetAgentFrame(Agent)

public WorldFrame? GetAgentFrame(Agent agent)

Parameters

agent Agent

Returns

WorldFrame?

GetNumberOfUsableSlots()

public int GetNumberOfUsableSlots()

Returns

int

GetPosition()

public Vec3 GetPosition()

Returns

Vec3

GetTemplateCostsOfAgent(Agent, List<float>)

public List<float> GetTemplateCostsOfAgent(Agent candidate, List<float> oldValue)

Parameters

candidate Agent
oldValue List<float>

Returns

List<float>

GetTemplateWeightOfAgent(Agent)

public float GetTemplateWeightOfAgent(Agent candidate)

Parameters

candidate Agent

Returns

float

GetWeightOfAgentAtNextSlot(List<(Agent, float)>, out Agent)

public float? GetWeightOfAgentAtNextSlot(List<(Agent, float)> agentTemplateScores, out Agent match)

Parameters

agentTemplateScores List<(Agent, float)>
match Agent

Returns

float?

GetWeightOfAgentAtNextSlot(List<Agent>, out Agent)

public float? GetWeightOfAgentAtNextSlot(List<Agent> newAgents, out Agent match)

Parameters

newAgents List<Agent>
match Agent

Returns

float?

GetWeightOfAgentAtOccupiedSlot(Agent, List<Agent>, out Agent)

public float? GetWeightOfAgentAtOccupiedSlot(Agent detachedAgent, List<Agent> newAgents, out Agent match)

Parameters

detachedAgent Agent
newAgents List<Agent>
match Agent

Returns

float?

GetWeightOfNextSlot(BattleSideEnum)

public float? GetWeightOfNextSlot(BattleSideEnum side)

Parameters

side BattleSideEnum

Returns

float?

GetWeightOfOccupiedSlot(Agent)

public float GetWeightOfOccupiedSlot(Agent agent)

Parameters

agent Agent

Returns

float

IsStandingPointAvailableForAgent(Agent)

public bool IsStandingPointAvailableForAgent(Agent agent)

Parameters

agent Agent

Returns

bool

IsUsedByFormation(Formation)

public bool IsUsedByFormation(Formation formation)

Parameters

formation Formation

Returns

bool

RemoveAgent(Agent)

public void RemoveAgent(Agent agent)

Parameters

agent Agent

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