M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ComponentInterfaces.MilitaryPowerModel Class Referenceabstract

Inherits TaleWorlds.Core.GameModel.

Inherited by TaleWorlds.CampaignSystem.GameComponents.DefaultMilitaryPowerModel.

Public Types

enum  PowerCalculationContext {
  FieldBattle ,
  FieldBattleSimulation ,
  RaidAsAttacker ,
  RaidAsDefender ,
  RaidSimulationAsAttacker ,
  RaidSimulationAsDefender ,
  SiegeSimulationAsAttacker ,
  SiegeSimulationAsDefender ,
  SiegeAsAttacker ,
  SiegeAsDefender ,
  ToCalculateSettlementSecurity ,
  Hideout ,
  Default
}
 

Public Member Functions

abstract float GetTroopPowerBasedOnContext (CharacterObject troop, MapEvent.BattleTypes battleType=MapEvent.BattleTypes.None, BattleSideEnum battleSideEnum=BattleSideEnum.None, bool isSimulation=false)
 
abstract float GetTroopPowerToCalculateSecurity (CharacterObject troop)
 

Member Enumeration Documentation

◆ PowerCalculationContext

Enumerator
FieldBattle 
FieldBattleSimulation 
RaidAsAttacker 
RaidAsDefender 
RaidSimulationAsAttacker 
RaidSimulationAsDefender 
SiegeSimulationAsAttacker 
SiegeSimulationAsDefender 
SiegeAsAttacker 
SiegeAsDefender 
ToCalculateSettlementSecurity 
Hideout 
Default 

Member Function Documentation

◆ GetTroopPowerBasedOnContext()

abstract float TaleWorlds.CampaignSystem.ComponentInterfaces.MilitaryPowerModel.GetTroopPowerBasedOnContext ( CharacterObject  troop,
MapEvent.BattleTypes  battleType = MapEvent.BattleTypes.None,
BattleSideEnum  battleSideEnum = BattleSideEnum.None,
bool  isSimulation = false 
)
pure virtual

◆ GetTroopPowerToCalculateSecurity()

abstract float TaleWorlds.CampaignSystem.ComponentInterfaces.MilitaryPowerModel.GetTroopPowerToCalculateSecurity ( CharacterObject  troop)
pure virtual