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

Inherits TaleWorlds.MountAndBlade.TacticComponent.

Public Types

enum  TacticState
 

Public Member Functions

 TacticDefendCastle (Team team)
 

Protected Member Functions

override bool CheckAndSetAvailableFormationsChanged ()
 
override void ManageFormationCounts ()
 
override void StopUsingAllMachines ()
 
override void StopUsingAllRangedSiegeWeapons ()
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.TacticComponent
 TacticComponent (Team team)
 
List< FormationConsolidateFormations (List< Formation > formationsToBeConsolidated, int neededCount)
 
void SplitFormationClassIntoGivenNumber (Func< Formation, bool > formationClass, int count)
 
virtual bool CheckAndSetAvailableFormationsChanged ()
 
void AssignTacticFormations1121 ()
 Merge and split AI controlled formations to end up with 1 infantry, 1 ranged, 2 cavalry(left and right) and 1 mounted range formation More...
 
virtual void ManageFormationCounts ()
 
void ManageFormationCounts (int infantryCount, int rangedCount, int cavalryCount, int rangedCavalryCount)
 
virtual void StopUsingAllMachines ()
 
virtual void StopUsingAllRangedSiegeWeapons ()
 
void SoundTacticalHorn (int soundCode)
 
bool CheckAndDetermineFormation (ref Formation formation, Func< Formation, bool > isEligible)
 Checks whether a reference to a formation is null or empty, if it is null or empty tries to re-refer it to an eligible formation More...
 

Properties

TacticState CurrentTacticState [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.TacticComponent
IEnumerable< FormationFormations [get]
 
IEnumerable< FormationFormationsIncludingSpecial [get]
 
bool AreFormationsCreated [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from TaleWorlds.MountAndBlade.TacticComponent
static void SetDefaultBehaviorWeights (Formation f)
 
- Static Public Attributes inherited from TaleWorlds.MountAndBlade.TacticComponent
static readonly int MoveHornSoundIndex
 
static readonly int AttackHornSoundIndex
 
static readonly int RetreatHornSoundIndex
 
- Static Protected Member Functions inherited from TaleWorlds.MountAndBlade.TacticComponent
static float GetFormationGroupEffectivenessOverOrder (IEnumerable< Formation > formationGroup, OrderType orderType, IOrderable targetObject=null)
 
static float GetFormationEffectivenessOverOrder (Formation formation, OrderType orderType, IOrderable targetObject=null)
 
static float CalculateNotEngagingTacticalAdvantage (TeamQuerySystem team)
 
static List< FormationChooseAndSortByPriority (IEnumerable< Formation > formations, Func< Formation, bool > isEligible, Func< Formation, bool > isPrioritized, Func< Formation, float > score)
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.TacticComponent
readonly Team team
 
int _AIControlledFormationCount = 0
 
bool IsTacticReapplyNeeded = false
 
Formation _mainInfantry
 
Formation _archers
 
Formation _leftCavalry
 
Formation _rightCavalry
 
Formation _rangedCavalry
 

Member Enumeration Documentation

◆ TacticState

Constructor & Destructor Documentation

◆ TacticDefendCastle()

TaleWorlds.MountAndBlade.TacticDefendCastle.TacticDefendCastle ( Team  team)

Member Function Documentation

◆ CheckAndSetAvailableFormationsChanged()

override bool TaleWorlds.MountAndBlade.TacticDefendCastle.CheckAndSetAvailableFormationsChanged ( )
protectedvirtual

◆ ManageFormationCounts()

override void TaleWorlds.MountAndBlade.TacticDefendCastle.ManageFormationCounts ( )
protectedvirtual

◆ StopUsingAllMachines()

override void TaleWorlds.MountAndBlade.TacticDefendCastle.StopUsingAllMachines ( )
protectedvirtual

◆ StopUsingAllRangedSiegeWeapons()

override void TaleWorlds.MountAndBlade.TacticDefendCastle.StopUsingAllRangedSiegeWeapons ( )
protectedvirtual

Property Documentation

◆ CurrentTacticState

TacticState TaleWorlds.MountAndBlade.TacticDefendCastle.CurrentTacticState
get