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
KingdomleaderParty
MobilePartyarmyType
Army.ArmyTypes
Properties
AIBehavior
[SaveableProperty(2)]
public Army.AIBehaviorFlags AIBehavior { get; set; }
Property Value
AiBehaviorObject
public IMapPoint AiBehaviorObject { get; set; }
Property Value
ArmyOwner
[SaveableProperty(4)]
public Hero ArmyOwner { get; set; }
Property Value
ArmyType
[SaveableProperty(3)]
public Army.ArmyTypes ArmyType { get; set; }
Property Value
Cohesion
[SaveableProperty(5)]
public float Cohesion { get; set; }
Property Value
CohesionThresholdForDispersion
public int CohesionThresholdForDispersion { get; }
Property Value
DailyCohesionChange
public float DailyCohesionChange { get; }
Property Value
DailyCohesionChangeExplanation
public ExplainedNumber DailyCohesionChangeExplanation { get; }
Property Value
EncyclopediaLinkWithName
public TextObject EncyclopediaLinkWithName { get; }
Property Value
Kingdom
public Kingdom Kingdom { get; set; }
Property Value
LeaderParty
[SaveableProperty(14)]
public MobileParty LeaderParty { get; }
Property Value
LeaderPartyAndAttachedPartiesCount
public int LeaderPartyAndAttachedPartiesCount { get; }
Property Value
Morale
[SaveableProperty(13)]
public float Morale { get; }
Property Value
Name
[SaveableProperty(17)]
public TextObject Name { get; }
Property Value
Parties
public MBReadOnlyList<MobileParty> Parties { get; }
Property Value
TotalHealthyMembers
public int TotalHealthyMembers { get; }
Property Value
TotalManCount
public int TotalManCount { get; }
Property Value
TotalRegularCount
public int TotalRegularCount { get; }
Property Value
TotalStrength
public float TotalStrength { get; }
Property Value
Methods
AddPartyToMergedParties(MobileParty)
public void AddPartyToMergedParties(MobileParty mobileParty)
Parameters
mobileParty
MobileParty
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
BoostCohesionWithInfluence(float, int)
public void BoostCohesionWithInfluence(float cohesionToGain, int cost)
Parameters
DoesLeaderPartyAndAttachedPartiesContain(MobileParty)
public bool DoesLeaderPartyAndAttachedPartiesContain(MobileParty party)
Parameters
party
MobileParty
Returns
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.AIBehaviorFlagscurrentBehavior
Army.AIBehaviorFlags
Returns
GetBehaviorText(bool)
public TextObject GetBehaviorText(bool setWithLink = false)
Parameters
setWithLink
bool
Returns
GetNotificationText()
public TextObject GetNotificationText()
Returns
GetRelativePositionForParty(MobileParty, Vec2)
public Vec2 GetRelativePositionForParty(MobileParty mobileParty, Vec2 armyFacing)
Parameters
mobileParty
MobilePartyarmyFacing
Vec2
Returns
RecalculateArmyMorale()
public void RecalculateArmyMorale()
ThinkAboutConcludingArmyGathering()
public void ThinkAboutConcludingArmyGathering()
ThinkAboutTravelingToAssignment()
public void ThinkAboutTravelingToAssignment()
ToString()
public override string ToString()
Returns
UpdateName()
public void UpdateName()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).