Table of Contents

Class GeneralsAndCaptainsAssignmentLogic

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class GeneralsAndCaptainsAssignmentLogic : MissionLogic, IMissionBehavior
Inheritance
GeneralsAndCaptainsAssignmentLogic
Implements
Inherited Members

Constructors

GeneralsAndCaptainsAssignmentLogic(TextObject, TextObject, TextObject, TextObject, bool)

public GeneralsAndCaptainsAssignmentLogic(TextObject attackerGeneralName, TextObject defenderGeneralName, TextObject attackerAllyGeneralName = null, TextObject defenderAllyGeneralName = null, bool createBodyguard = true)

Parameters

attackerGeneralName TextObject
defenderGeneralName TextObject
attackerAllyGeneralName TextObject
defenderAllyGeneralName TextObject
createBodyguard bool

Fields

MinimumAgentCountToLeadGeneralFormation

public int MinimumAgentCountToLeadGeneralFormation

Field Value

int

Methods

AfterStart()

public override void AfterStart()

OnDeploymentFinished()

public override void OnDeploymentFinished()

OnTeamDeployed(Team)

public override void OnTeamDeployed(Team team)

Parameters

team Team

PickBestRegularFormationToLead(Agent, List<Formation>)

protected virtual Formation PickBestRegularFormationToLead(Agent agent, List<Formation> candidateFormations)

Parameters

agent Agent
candidateFormations List<Formation>

Returns

Formation

SortCaptainsByPriority(Team, ref List<Agent>)

protected virtual void SortCaptainsByPriority(Team team, ref List<Agent> captains)

Parameters

team Team
captains List<Agent>

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