Table of Contents

Class Army

Namespace
TaleWorlds.CampaignSystem
Assembly
TaleWorlds.CampaignSystem.dll
public class Army
Inheritance
Army
Inherited Members

Constructors

Army(Kingdom, MobileParty, ArmyTypes)

public Army(Kingdom kingdom, MobileParty leaderParty, Army.ArmyTypes armyType)

Parameters

kingdom Kingdom
leaderParty MobileParty
armyType Army.ArmyTypes

Properties

AIBehavior

[SaveableProperty(2)]
public Army.AIBehaviorFlags AIBehavior { get; set; }

Property Value

Army.AIBehaviorFlags

AiBehaviorObject

public IMapPoint AiBehaviorObject { get; set; }

Property Value

IMapPoint

ArmyOwner

[SaveableProperty(4)]
public Hero ArmyOwner { get; set; }

Property Value

Hero

ArmyType

[SaveableProperty(3)]
public Army.ArmyTypes ArmyType { get; set; }

Property Value

Army.ArmyTypes

Cohesion

[SaveableProperty(5)]
public float Cohesion { get; set; }

Property Value

float

CohesionThresholdForDispersion

public int CohesionThresholdForDispersion { get; }

Property Value

int

DailyCohesionChange

public float DailyCohesionChange { get; }

Property Value

float

DailyCohesionChangeExplanation

public ExplainedNumber DailyCohesionChangeExplanation { get; }

Property Value

ExplainedNumber

EncyclopediaLinkWithName

public TextObject EncyclopediaLinkWithName { get; }

Property Value

TextObject

Kingdom

public Kingdom Kingdom { get; set; }

Property Value

Kingdom

LeaderParty

[SaveableProperty(14)]
public MobileParty LeaderParty { get; }

Property Value

MobileParty

LeaderPartyAndAttachedPartiesCount

public int LeaderPartyAndAttachedPartiesCount { get; }

Property Value

int

Morale

[SaveableProperty(13)]
public float Morale { get; }

Property Value

float

Name

[SaveableProperty(17)]
public TextObject Name { get; }

Property Value

TextObject

Parties

public MBReadOnlyList<MobileParty> Parties { get; }

Property Value

MBReadOnlyList<MobileParty>

TotalHealthyMembers

public int TotalHealthyMembers { get; }

Property Value

int

TotalManCount

public int TotalManCount { get; }

Property Value

int

TotalRegularCount

public int TotalRegularCount { get; }

Property Value

int

TotalStrength

public float TotalStrength { get; }

Property Value

float

Methods

AddPartyToMergedParties(MobileParty)

public void AddPartyToMergedParties(MobileParty mobileParty)

Parameters

mobileParty MobileParty

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

BoostCohesionWithInfluence(float, int)

public void BoostCohesionWithInfluence(float cohesionToGain, int cost)

Parameters

cohesionToGain float
cost int

DoesLeaderPartyAndAttachedPartiesContain(MobileParty)

public bool DoesLeaderPartyAndAttachedPartiesContain(MobileParty party)

Parameters

party MobileParty

Returns

bool

FinishArmyObjective()

public void FinishArmyObjective()

Gather(Settlement)

public void Gather(Settlement initialHostileSettlement)

Parameters

initialHostileSettlement Settlement

GetBehaviorChangeExplanation(AIBehaviorFlags, AIBehaviorFlags)

public static Army.ArmyLeaderThinkReason GetBehaviorChangeExplanation(Army.AIBehaviorFlags previousBehavior, Army.AIBehaviorFlags currentBehavior)

Parameters

previousBehavior Army.AIBehaviorFlags
currentBehavior Army.AIBehaviorFlags

Returns

Army.ArmyLeaderThinkReason

GetBehaviorText(bool)

public TextObject GetBehaviorText(bool setWithLink = false)

Parameters

setWithLink bool

Returns

TextObject

GetNotificationText()

public TextObject GetNotificationText()

Returns

TextObject

GetRelativePositionForParty(MobileParty, Vec2)

public Vec2 GetRelativePositionForParty(MobileParty mobileParty, Vec2 armyFacing)

Parameters

mobileParty MobileParty
armyFacing Vec2

Returns

Vec2

RecalculateArmyMorale()

public void RecalculateArmyMorale()

ThinkAboutConcludingArmyGathering()

public void ThinkAboutConcludingArmyGathering()

ThinkAboutTravelingToAssignment()

public void ThinkAboutTravelingToAssignment()

ToString()

public override string ToString()

Returns

string

UpdateName()

public void UpdateName()

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