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

The strategy (larger, overall plan to win the battle) to be used is decided by team ai

Inherited by TaleWorlds.MountAndBlade.TeamAIGeneral, and TaleWorlds.MountAndBlade.TeamAISiegeComponent.

Classes

class  TacticOption
 

Public Member Functions

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)
 

Public Attributes

List< TacticalPositionTacticalPositions
 
List< TacticalRegionTacticalRegions
 

Static Public Attributes

const int BattleTokenForceSize = 10
 

Protected Member Functions

 TeamAIComponent (Mission currentMission, Team currentTeam, float thinkTimerTime, float applyTimerTime)
 
virtual void DebugTick (float dt)
 

Protected Attributes

readonly Mission Mission
 
readonly Team Team
 

Properties

bool HasStrategicAreas [get]
 
bool IsDefenseApplicable [get]
 
bool GetIsFirstTacticChosen = false [get]
 
TacticComponent CurrentTactic [get]
 

Constructor & Destructor Documentation

◆ TeamAIComponent()

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

Member Function Documentation

◆ GetStrategicAreas()

List< StrategicArea > TaleWorlds.MountAndBlade.TeamAIComponent.GetStrategicAreas ( )

◆ AddStrategicArea()

void TaleWorlds.MountAndBlade.TeamAIComponent.AddStrategicArea ( StrategicArea  strategicArea)

◆ RemoveStrategicArea()

void TaleWorlds.MountAndBlade.TeamAIComponent.RemoveStrategicArea ( StrategicArea  strategicArea)

◆ RemoveAllStrategicAreas()

void TaleWorlds.MountAndBlade.TeamAIComponent.RemoveAllStrategicAreas ( )

◆ AddTacticOption()

void TaleWorlds.MountAndBlade.TeamAIComponent.AddTacticOption ( TacticComponent  tacticOption)

◆ RemoveTacticOption()

void TaleWorlds.MountAndBlade.TeamAIComponent.RemoveTacticOption ( Type  tacticType)

◆ ClearTacticOptions()

void TaleWorlds.MountAndBlade.TeamAIComponent.ClearTacticOptions ( )

◆ AssertTeam()

void TaleWorlds.MountAndBlade.TeamAIComponent.AssertTeam ( Team  team)

◆ OnMissionEnded()

void TaleWorlds.MountAndBlade.TeamAIComponent.OnMissionEnded ( )

◆ ResetTactic()

void TaleWorlds.MountAndBlade.TeamAIComponent.ResetTactic ( bool  keepCurrentTactic = true)

◆ CheckIsDefenseApplicable()

void TaleWorlds.MountAndBlade.TeamAIComponent.CheckIsDefenseApplicable ( )

◆ OnTacticAppliedForFirstTime()

void TaleWorlds.MountAndBlade.TeamAIComponent.OnTacticAppliedForFirstTime ( )

◆ TickOccasionally()

void TaleWorlds.MountAndBlade.TeamAIComponent.TickOccasionally ( )

◆ IsCurrentTactic()

bool TaleWorlds.MountAndBlade.TeamAIComponent.IsCurrentTactic ( TacticComponent  tactic)

◆ DebugTick()

virtual void TaleWorlds.MountAndBlade.TeamAIComponent.DebugTick ( float  dt)
protectedvirtual

◆ OnUnitAddedToFormationForTheFirstTime()

Member Data Documentation

◆ BattleTokenForceSize

const int TaleWorlds.MountAndBlade.TeamAIComponent.BattleTokenForceSize = 10
static

◆ Mission

readonly Mission TaleWorlds.MountAndBlade.TeamAIComponent.Mission
protected

◆ Team

readonly Team TaleWorlds.MountAndBlade.TeamAIComponent.Team
protected

◆ TacticalPositions

List<TacticalPosition> TaleWorlds.MountAndBlade.TeamAIComponent.TacticalPositions

◆ TacticalRegions

List<TacticalRegion> TaleWorlds.MountAndBlade.TeamAIComponent.TacticalRegions

Property Documentation

◆ HasStrategicAreas

bool TaleWorlds.MountAndBlade.TeamAIComponent.HasStrategicAreas
get

◆ IsDefenseApplicable

bool TaleWorlds.MountAndBlade.TeamAIComponent.IsDefenseApplicable
get

◆ GetIsFirstTacticChosen

bool TaleWorlds.MountAndBlade.TeamAIComponent.GetIsFirstTacticChosen = false
get

◆ CurrentTactic

TacticComponent TaleWorlds.MountAndBlade.TeamAIComponent.CurrentTactic
getprotected