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

Inherits TaleWorlds.MountAndBlade.IDetachment.

Public Member Functions

 AttackEntityOrderDetachment (GameEntity targetEntity)
 
Vec3 GetPosition ()
 
void AddAgent (Agent agent, int slotIndex)
 
void AddAgentAtSlotIndex (Agent agent, int slotIndex)
 
bool IsUsedByFormation (Formation formation)
 
bool IsStandingPointAvailableForAgent (Agent agent)
 
float[] GetTemplateCostsOfAgent (Agent candidate, float[] oldValue)
 
float GetTemplateWeightOfAgent (Agent candidate)
 
float? GetWeightOfAgentAtNextSlot (IEnumerable< Agent > newAgents, out Agent match)
 
float? GetWeightOfAgentAtNextSlot (IEnumerable< AgentValuePair< float > > agentTemplateScores, out Agent match)
 
float? GetWeightOfAgentAtOccupiedSlot (Agent detachedAgent, IEnumerable< Agent > newAgents, out Agent match)
 
void RemoveAgent (Agent agent)
 
WorldFrameGetAgentFrame (Agent agent)
 Returns null for siege weapons and other detachments that sets scripted frame for the agent. Returns a frame otherwise. More...
 
float? GetWeightOfNextSlot (BattleSideEnum side)
 Null if there is no vacancy left. Otherwise it is a positive number. More...
 
float GetWeightOfOccupiedSlot (Agent agent)
 
bool IsAgentUsingOrMovingTo (Agent agent)
 
float? GetWeightOfNextSlot (BattleSideEnum side)
 Null if there is no vacancy left. Otherwise it is a positive number. More...
 
float GetDetachmentWeight (BattleSideEnum side)
 
float ComputeAndCacheDetachmentWeight (BattleSideEnum side)
 
float GetDetachmentWeightFromCache ()
 
List< ValueTuple< int, float > > GetSlotIndexWeightTuples ()
 
bool IsSlotAtIndexAvailableForAgent (int slotIndex, Agent agent)
 
bool IsAgentEligible (Agent agent)
 
void AddAgentAtSlotIndex (Agent agent, int slotIndex)
 
Agent GetMovingAgentAtSlotIndex (int slotIndex)
 
void MarkSlotAtIndex (int slotIndex)
 
bool IsDetachmentRecentlyEvaluated ()
 
void UnmarkDetachment ()
 
float? GetWeightOfAgentAtNextSlot (IEnumerable< Agent > candidates, out Agent match)
 
float? GetWeightOfAgentAtNextSlot (IEnumerable< AgentValuePair< float > > agentTemplateScores, out Agent match)
 
float GetTemplateWeightOfAgent (Agent candidate)
 
float[] GetTemplateCostsOfAgent (Agent candidate, float[] oldValue)
 
float GetExactCostOfAgentAtSlot (Agent candidate, int slotIndex)
 
float GetWeightOfOccupiedSlot (Agent detachedAgent)
 
float? GetWeightOfAgentAtOccupiedSlot (Agent detachedAgent, IEnumerable< Agent > candidates, out Agent match)
 
bool IsStandingPointAvailableForAgent (Agent agent)
 
void AddAgent (Agent agent, int slotIndex=-1)
 
void RemoveAgent (Agent detachedAgent)
 
void FormationStartUsing (Formation formation)
 
void FormationStopUsing (Formation formation)
 
bool IsUsedByFormation (Formation formation)
 
WorldFrameGetAgentFrame (Agent detachedAgent)
 Returns null for siege weapons and other detachments that sets scripted frame for the agent. Returns a frame otherwise. More...
 
void ResetEvaluation ()
 
bool IsEvaluated ()
 
void SetAsEvaluated ()
 
void OnFormationLeave (Formation formation)
 

Properties

IReadOnlyList< FormationUserFormations [get]
 
IEnumerable< AgentAgents [get]
 Detached agents of this detachment More...
 
bool IsLoose [get]
 
bool IsActive [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IDetachment
IEnumerable< AgentAgents [get]
 Detached agents of this detachment More...
 
IReadOnlyList< FormationUserFormations [get]
 
bool IsLoose [get]
 

Constructor & Destructor Documentation

◆ AttackEntityOrderDetachment()

TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.AttackEntityOrderDetachment ( GameEntity  targetEntity)

Member Function Documentation

◆ GetPosition()

Vec3 TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetPosition ( )

◆ AddAgent()

void TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.AddAgent ( Agent  agent,
int  slotIndex 
)

◆ AddAgentAtSlotIndex()

void TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.AddAgentAtSlotIndex ( Agent  agent,
int  slotIndex 
)

◆ IsUsedByFormation()

bool TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.IsUsedByFormation ( Formation  formation)

◆ IsStandingPointAvailableForAgent()

bool TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.IsStandingPointAvailableForAgent ( Agent  agent)

◆ GetTemplateCostsOfAgent()

float[] TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetTemplateCostsOfAgent ( Agent  candidate,
float[]  oldValue 
)

◆ GetTemplateWeightOfAgent()

float TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetTemplateWeightOfAgent ( Agent  candidate)

◆ GetWeightOfAgentAtNextSlot() [1/2]

float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfAgentAtNextSlot ( IEnumerable< Agent newAgents,
out Agent  match 
)

◆ GetWeightOfAgentAtNextSlot() [2/2]

float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfAgentAtNextSlot ( IEnumerable< AgentValuePair< float > >  agentTemplateScores,
out Agent  match 
)

◆ GetWeightOfAgentAtOccupiedSlot()

float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfAgentAtOccupiedSlot ( Agent  detachedAgent,
IEnumerable< Agent newAgents,
out Agent  match 
)

◆ RemoveAgent()

void TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.RemoveAgent ( Agent  agent)

◆ GetAgentFrame()

WorldFrame? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetAgentFrame ( Agent  detachedAgent)
Parameters
detachedAgent
Returns

Implements TaleWorlds.MountAndBlade.IDetachment.

◆ GetWeightOfNextSlot()

float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfNextSlot ( BattleSideEnum  side)

◆ GetWeightOfOccupiedSlot()

float TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfOccupiedSlot ( Agent  agent)

Property Documentation

◆ UserFormations

IReadOnlyList<Formation> TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.UserFormations
get

◆ Agents

IEnumerable<Agent> TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.Agents
get

◆ IsLoose

bool TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.IsLoose
get

◆ IsActive

bool TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.IsActive
get