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

Inherits TaleWorlds.MountAndBlade.TeamAIComponent.

Inherited by TaleWorlds.MountAndBlade.TeamAISallyOutAttacker, TaleWorlds.MountAndBlade.TeamAISallyOutDefender, TaleWorlds.MountAndBlade.TeamAISiegeAttacker, TaleWorlds.MountAndBlade.TeamAISiegeDefender, TaleWorlds.MountAndBlade.TeamAiMultiplayerSiegeAttacker, and TaleWorlds.MountAndBlade.TeamAiMultiplayerSiegeDefender.

Public Member Functions

bool CalculateIsChargePastWallsApplicable (FormationAI.BehaviorSide side)
 
void SetAreLaddersReady (bool areLaddersReady)
 
bool CalculateIsAnyLaneOpenToGetInside ()
 
bool CalculateIsAnyLaneOpenToGoOutside ()
 
bool IsPrimarySiegeWeaponNavmeshFaceId (int id)
 
IEnumerable< FormationGetAttackerFormationsInsideWalls ()
 
int GetFormationsInsideWallsCount ()
 
bool IsCastleBreached ()
 
virtual void OnDeploymentFinished ()
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.TeamAIComponent
List< StrategicAreaGetStrategicAreas ()
 
void AddStrategicArea (StrategicArea strategicArea)
 
void RemoveStrategicArea (StrategicArea strategicArea)
 
void RemoveAllStrategicAreas ()
 
void AddTacticOption (TacticComponent tacticOption)
 
void RemoveTacticOption (Type tacticType)
 
void ClearTacticOptions ()
 
void AssertTeam (Team team)
 
void OnMissionEnded ()
 
void ResetTactic (bool keepCurrentTactic=true)
 
void CheckIsDefenseApplicable ()
 
void OnTacticAppliedForFirstTime ()
 
void TickOccasionally ()
 
bool IsCurrentTactic (TacticComponent tactic)
 
abstract void OnUnitAddedToFormationForTheFirstTime (Formation formation)
 

Static Public Member Functions

static void OnMissionFinalize ()
 
static bool IsFormationGroupInsideCastle (IEnumerable< Formation > formationGroup, bool includeOnlyPositionedUnits, float thresholdPercentage=FormationInsideCastleThresholdPercentage)
 
static bool IsFormationInsideCastle (Formation formation, bool includeOnlyPositionedUnits, float thresholdPercentage=FormationInsideCastleThresholdPercentage)
 

Public Attributes

readonly IEnumerable< WallSegmentWallSegments
 
readonly List< SiegeWeaponSceneSiegeWeapons
 
- Public Attributes inherited from TaleWorlds.MountAndBlade.TeamAIComponent
List< TacticalPositionTacticalPositions
 
List< TacticalRegionTacticalRegions
 

Static Public Attributes

const int InsideCastleNavMeshID = 1
 
const int SiegeTokenForceSize = 15
 
- Static Public Attributes inherited from TaleWorlds.MountAndBlade.TeamAIComponent
const int BattleTokenForceSize = 10
 

Protected Member Functions

 TeamAISiegeComponent (Mission currentMission, Team currentTeam, float thinkTimerTime, float applyTimerTime)
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.TeamAIComponent
 TeamAIComponent (Mission currentMission, Team currentTeam, float thinkTimerTime, float applyTimerTime)
 
virtual void DebugTick (float dt)
 

Protected Attributes

readonly IEnumerable< CastleGateCastleGates
 
readonly List< SiegeTowerSiegeTowers
 
readonly HashSet< int > PrimarySiegeWeaponNavMeshFaceIDs
 
BatteringRam Ram
 
List< MissionObjectCastleKeyPositions
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.TeamAIComponent
readonly Mission Mission
 
readonly Team Team
 

Properties

static List< SiegeLaneSiegeLanes [get]
 
static SiegeQuerySystem QuerySystem [get, protected set]
 
CastleGate OuterGate [get]
 
List< IPrimarySiegeWeaponPrimarySiegeWeapons [get]
 
CastleGate InnerGate [get]
 
MBReadOnlyList< SiegeLadderLadders [get]
 
bool AreLaddersReady [get]
 
List< int > DifficultNavmeshIDs [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.TeamAIComponent
bool HasStrategicAreas [get]
 
bool IsDefenseApplicable [get]
 
bool GetIsFirstTacticChosen = false [get]
 
TacticComponent CurrentTactic [get]
 

Constructor & Destructor Documentation

◆ TeamAISiegeComponent()

TaleWorlds.MountAndBlade.TeamAISiegeComponent.TeamAISiegeComponent ( Mission  currentMission,
Team  currentTeam,
float  thinkTimerTime,
float  applyTimerTime 
)
protected

Member Function Documentation

◆ OnMissionFinalize()

static void TaleWorlds.MountAndBlade.TeamAISiegeComponent.OnMissionFinalize ( )
static

◆ CalculateIsChargePastWallsApplicable()

bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.CalculateIsChargePastWallsApplicable ( FormationAI.BehaviorSide  side)

◆ SetAreLaddersReady()

void TaleWorlds.MountAndBlade.TeamAISiegeComponent.SetAreLaddersReady ( bool  areLaddersReady)

◆ CalculateIsAnyLaneOpenToGetInside()

bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.CalculateIsAnyLaneOpenToGetInside ( )

◆ CalculateIsAnyLaneOpenToGoOutside()

bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.CalculateIsAnyLaneOpenToGoOutside ( )

◆ IsPrimarySiegeWeaponNavmeshFaceId()

bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.IsPrimarySiegeWeaponNavmeshFaceId ( int  id)

◆ IsFormationGroupInsideCastle()

static bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.IsFormationGroupInsideCastle ( IEnumerable< Formation formationGroup,
bool  includeOnlyPositionedUnits,
float  thresholdPercentage = FormationInsideCastleThresholdPercentage 
)
static

◆ IsFormationInsideCastle()

static bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.IsFormationInsideCastle ( Formation  formation,
bool  includeOnlyPositionedUnits,
float  thresholdPercentage = FormationInsideCastleThresholdPercentage 
)
static

◆ GetAttackerFormationsInsideWalls()

IEnumerable< Formation > TaleWorlds.MountAndBlade.TeamAISiegeComponent.GetAttackerFormationsInsideWalls ( )

◆ GetFormationsInsideWallsCount()

int TaleWorlds.MountAndBlade.TeamAISiegeComponent.GetFormationsInsideWallsCount ( )

◆ IsCastleBreached()

bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.IsCastleBreached ( )

◆ OnDeploymentFinished()

virtual void TaleWorlds.MountAndBlade.TeamAISiegeComponent.OnDeploymentFinished ( )
virtual

Member Data Documentation

◆ InsideCastleNavMeshID

const int TaleWorlds.MountAndBlade.TeamAISiegeComponent.InsideCastleNavMeshID = 1
static

◆ SiegeTokenForceSize

const int TaleWorlds.MountAndBlade.TeamAISiegeComponent.SiegeTokenForceSize = 15
static

◆ WallSegments

readonly IEnumerable<WallSegment> TaleWorlds.MountAndBlade.TeamAISiegeComponent.WallSegments

◆ SceneSiegeWeapons

readonly List<SiegeWeapon> TaleWorlds.MountAndBlade.TeamAISiegeComponent.SceneSiegeWeapons

◆ CastleGates

readonly IEnumerable<CastleGate> TaleWorlds.MountAndBlade.TeamAISiegeComponent.CastleGates
protected

◆ SiegeTowers

readonly List<SiegeTower> TaleWorlds.MountAndBlade.TeamAISiegeComponent.SiegeTowers
protected

◆ PrimarySiegeWeaponNavMeshFaceIDs

readonly HashSet<int> TaleWorlds.MountAndBlade.TeamAISiegeComponent.PrimarySiegeWeaponNavMeshFaceIDs
protected

◆ Ram

BatteringRam TaleWorlds.MountAndBlade.TeamAISiegeComponent.Ram
protected

◆ CastleKeyPositions

List<MissionObject> TaleWorlds.MountAndBlade.TeamAISiegeComponent.CastleKeyPositions
protected

Property Documentation

◆ SiegeLanes

List<SiegeLane> TaleWorlds.MountAndBlade.TeamAISiegeComponent.SiegeLanes
staticget

◆ QuerySystem

SiegeQuerySystem TaleWorlds.MountAndBlade.TeamAISiegeComponent.QuerySystem
staticgetprotected set

◆ OuterGate

CastleGate TaleWorlds.MountAndBlade.TeamAISiegeComponent.OuterGate
get

◆ PrimarySiegeWeapons

List<IPrimarySiegeWeapon> TaleWorlds.MountAndBlade.TeamAISiegeComponent.PrimarySiegeWeapons
get

◆ InnerGate

CastleGate TaleWorlds.MountAndBlade.TeamAISiegeComponent.InnerGate
get

◆ Ladders

MBReadOnlyList<SiegeLadder> TaleWorlds.MountAndBlade.TeamAISiegeComponent.Ladders
get

◆ AreLaddersReady

bool TaleWorlds.MountAndBlade.TeamAISiegeComponent.AreLaddersReady
get

◆ DifficultNavmeshIDs

List<int> TaleWorlds.MountAndBlade.TeamAISiegeComponent.DifficultNavmeshIDs
get