Table of Contents

Class StrategicArea

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class StrategicArea : MissionObject, IDetachment
Inheritance
StrategicArea
Implements
Inherited Members

Constructors

StrategicArea()

public StrategicArea()

Properties

DistanceToCheck

public float DistanceToCheck { get; }

Property Value

float

IgnoreHeight

public bool IgnoreHeight { get; }

Property Value

bool

IsActive

public bool IsActive { get; set; }

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

DetermineAssociatedDestructibleComponents(IEnumerable<DestructableComponent>)

public void DetermineAssociatedDestructibleComponents(IEnumerable<DestructableComponent> destructibleComponents)

Parameters

destructibleComponents IEnumerable<DestructableComponent>

GetAgentFrame(Agent)

public WorldFrame? GetAgentFrame(Agent agent)

Parameters

agent Agent

Returns

WorldFrame?

GetGroundPosition()

public Vec3 GetGroundPosition()

Returns

Vec3

GetNumberOfUsableSlots()

public int GetNumberOfUsableSlots()

Returns

int

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

InitializeAutogenerated(float, int, BattleSideEnum)

public void InitializeAutogenerated(float width, int capacity, BattleSideEnum side)

Parameters

width float
capacity int
side BattleSideEnum

IsAgentEligible(Agent)

public bool IsAgentEligible(Agent agent)

Parameters

agent Agent

Returns

bool

IsStandingPointAvailableForAgent(Agent)

public bool IsStandingPointAvailableForAgent(Agent agent)

Parameters

agent Agent

Returns

bool

IsUsableBy(BattleSideEnum)

public bool IsUsableBy(BattleSideEnum side)

Parameters

side BattleSideEnum

Returns

bool

IsUsedByFormation(Formation)

public bool IsUsedByFormation(Formation formation)

Parameters

formation Formation

Returns

bool

OnCheckForProblems()

protected override bool OnCheckForProblems()

Returns

bool

OnInit()

protected override void OnInit()

OnParentGameEntityVisibilityChanged(bool)

public void OnParentGameEntityVisibilityChanged(bool isVisible)

Parameters

isVisible bool

OnRemoved(int)

protected override void OnRemoved(int removeReason)

Parameters

removeReason int

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).