M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.MapEvents.MapEventSide Class Reference

Public Member Functions

int CountTroops (Func< FlattenedTroopRosterElement, bool > pred)
 
int GetTotalHealthyTroopCountOfSide ()
 
int GetTotalHealthyHeroCountOfSide ()
 
int RecalculateMemberCountOfSide ()
 
float RecalculateStrengthOfSide ()
 
bool IsMainPartyAmongParties ()
 
float GetPlayerPartyContributionRate ()
 
void CalculateRenownAndInfluenceValues (float[] strengthOfSide)
 
virtual void DistributeRenownAndInfluence (MapEventResultExplainer resultExplainers=null, bool forScoreboard=false)
 
void ApplyRenownAndInfluenceChanges ()
 
void ApplyFinalRewardsAndChanges ()
 
virtual void CalculatePlunderedGoldShare (float totalPlunderedGold, MapEventResultExplainer resultExplainers=null)
 
void UpdatePartiesMoveState ()
 
void HandleMapEventEnd ()
 
void AddHeroDamage (Hero character, int damage)
 
void AllocateTroops (ref List< UniqueTroopDescriptor > troopsList, int number=-1, Func< UniqueTroopDescriptor, MapEventParty, bool > customAllocationConditions=null)
 
void GetAllTroops (ref List< UniqueTroopDescriptor > troopsList)
 
CharacterObject GetAllocatedTroop (UniqueTroopDescriptor troopDesc0)
 
CharacterObject GetReadyTroop (UniqueTroopDescriptor troopDesc0)
 
PartyBase GetAllocatedTroopParty (UniqueTroopDescriptor troopDescriptor)
 
PartyBase GetReadyTroopParty (UniqueTroopDescriptor troopDescriptor)
 
void OnTroopWounded (UniqueTroopDescriptor troopDesc1)
 
void OnTroopKilled (UniqueTroopDescriptor troopDesc1)
 
void OnTroopRouted (UniqueTroopDescriptor troopDesc1)
 
void OnTroopScoreHit (UniqueTroopDescriptor troopDesc1, CharacterObject attackedTroop, int damage, bool isFatal, bool isTeamKill, WeaponComponentData attackerWeapon, bool isSimulatedHit)
 
void MakeReadyForSimulation (FlattenedTroopRoster priorTroops, int sizeOfSide=-1)
 
void MakeReadyForMission (FlattenedTroopRoster priorTroops)
 
void EndSimulation ()
 
ItemRoster ItemRosterForPlayerLootShare (PartyBase playerParty)
 
TroopRoster MemberRosterForPlayerLootShare (PartyBase playerParty)
 
TroopRoster PrisonerRosterForPlayerLootShare (PartyBase playerParty)
 
void Clear ()
 
UniqueTroopDescriptor SelectRandomSimulationTroop ()
 
void ApplySimulatedHitRewardToSelectedTroop (CharacterObject strikerTroop, CharacterObject attackedTroop, int damage, bool isFinishingStrike)
 
void Surrender ()
 

Public Attributes

float StrengthRatio = 1.0f
 
float RenownValue
 
float InfluenceValue
 
float RenownAtMapEventEnd
 
int Casualties
 

Properties

PartyBase LeaderParty [get]
 
MBReadOnlyList< MapEventPartyParties [get]
 
BattleSideEnum MissionSide [get]
 
int TroopCount [get]
 
int NumRemainingSimulationTroops [get]
 
float CasualtyStrength [get]
 
MapEvent MapEvent [get]
 
MapEventSide OtherSide [get]
 
IFaction MapFaction [get]
 

Member Function Documentation

◆ CountTroops()

int TaleWorlds.CampaignSystem.MapEvents.MapEventSide.CountTroops ( Func< FlattenedTroopRosterElement, bool >  pred)

◆ GetTotalHealthyTroopCountOfSide()

int TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetTotalHealthyTroopCountOfSide ( )

◆ GetTotalHealthyHeroCountOfSide()

int TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetTotalHealthyHeroCountOfSide ( )

◆ RecalculateMemberCountOfSide()

int TaleWorlds.CampaignSystem.MapEvents.MapEventSide.RecalculateMemberCountOfSide ( )

◆ RecalculateStrengthOfSide()

float TaleWorlds.CampaignSystem.MapEvents.MapEventSide.RecalculateStrengthOfSide ( )

◆ IsMainPartyAmongParties()

bool TaleWorlds.CampaignSystem.MapEvents.MapEventSide.IsMainPartyAmongParties ( )

◆ GetPlayerPartyContributionRate()

float TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetPlayerPartyContributionRate ( )

◆ CalculateRenownAndInfluenceValues()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.CalculateRenownAndInfluenceValues ( float[]  strengthOfSide)

◆ DistributeRenownAndInfluence()

virtual void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.DistributeRenownAndInfluence ( MapEventResultExplainer  resultExplainers = null,
bool  forScoreboard = false 
)
virtual

◆ ApplyRenownAndInfluenceChanges()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.ApplyRenownAndInfluenceChanges ( )

◆ ApplyFinalRewardsAndChanges()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.ApplyFinalRewardsAndChanges ( )

◆ CalculatePlunderedGoldShare()

virtual void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.CalculatePlunderedGoldShare ( float  totalPlunderedGold,
MapEventResultExplainer  resultExplainers = null 
)
virtual

◆ UpdatePartiesMoveState()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.UpdatePartiesMoveState ( )

◆ HandleMapEventEnd()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.HandleMapEventEnd ( )

◆ AddHeroDamage()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.AddHeroDamage ( Hero  character,
int  damage 
)

◆ AllocateTroops()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.AllocateTroops ( ref List< UniqueTroopDescriptor troopsList,
int  number = -1,
Func< UniqueTroopDescriptor, MapEventParty, bool >  customAllocationConditions = null 
)

◆ GetAllTroops()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetAllTroops ( ref List< UniqueTroopDescriptor troopsList)

◆ GetAllocatedTroop()

CharacterObject TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetAllocatedTroop ( UniqueTroopDescriptor  troopDesc0)

◆ GetReadyTroop()

CharacterObject TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetReadyTroop ( UniqueTroopDescriptor  troopDesc0)

◆ GetAllocatedTroopParty()

PartyBase TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetAllocatedTroopParty ( UniqueTroopDescriptor  troopDescriptor)

◆ GetReadyTroopParty()

PartyBase TaleWorlds.CampaignSystem.MapEvents.MapEventSide.GetReadyTroopParty ( UniqueTroopDescriptor  troopDescriptor)

◆ OnTroopWounded()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.OnTroopWounded ( UniqueTroopDescriptor  troopDesc1)

◆ OnTroopKilled()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.OnTroopKilled ( UniqueTroopDescriptor  troopDesc1)

◆ OnTroopRouted()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.OnTroopRouted ( UniqueTroopDescriptor  troopDesc1)

◆ OnTroopScoreHit()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.OnTroopScoreHit ( UniqueTroopDescriptor  troopDesc1,
CharacterObject  attackedTroop,
int  damage,
bool  isFatal,
bool  isTeamKill,
WeaponComponentData  attackerWeapon,
bool  isSimulatedHit 
)

◆ MakeReadyForSimulation()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.MakeReadyForSimulation ( FlattenedTroopRoster  priorTroops,
int  sizeOfSide = -1 
)

◆ MakeReadyForMission()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.MakeReadyForMission ( FlattenedTroopRoster  priorTroops)

◆ EndSimulation()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.EndSimulation ( )

◆ ItemRosterForPlayerLootShare()

ItemRoster TaleWorlds.CampaignSystem.MapEvents.MapEventSide.ItemRosterForPlayerLootShare ( PartyBase  playerParty)

◆ MemberRosterForPlayerLootShare()

TroopRoster TaleWorlds.CampaignSystem.MapEvents.MapEventSide.MemberRosterForPlayerLootShare ( PartyBase  playerParty)

◆ PrisonerRosterForPlayerLootShare()

TroopRoster TaleWorlds.CampaignSystem.MapEvents.MapEventSide.PrisonerRosterForPlayerLootShare ( PartyBase  playerParty)

◆ Clear()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.Clear ( )

◆ SelectRandomSimulationTroop()

UniqueTroopDescriptor TaleWorlds.CampaignSystem.MapEvents.MapEventSide.SelectRandomSimulationTroop ( )

◆ ApplySimulatedHitRewardToSelectedTroop()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.ApplySimulatedHitRewardToSelectedTroop ( CharacterObject  strikerTroop,
CharacterObject  attackedTroop,
int  damage,
bool  isFinishingStrike 
)

◆ Surrender()

void TaleWorlds.CampaignSystem.MapEvents.MapEventSide.Surrender ( )

Member Data Documentation

◆ StrengthRatio

float TaleWorlds.CampaignSystem.MapEvents.MapEventSide.StrengthRatio = 1.0f

◆ RenownValue

float TaleWorlds.CampaignSystem.MapEvents.MapEventSide.RenownValue

◆ InfluenceValue

float TaleWorlds.CampaignSystem.MapEvents.MapEventSide.InfluenceValue

◆ RenownAtMapEventEnd

float TaleWorlds.CampaignSystem.MapEvents.MapEventSide.RenownAtMapEventEnd

◆ Casualties

int TaleWorlds.CampaignSystem.MapEvents.MapEventSide.Casualties

Property Documentation

◆ LeaderParty

PartyBase TaleWorlds.CampaignSystem.MapEvents.MapEventSide.LeaderParty
get

◆ Parties

MBReadOnlyList<MapEventParty> TaleWorlds.CampaignSystem.MapEvents.MapEventSide.Parties
get

◆ MissionSide

BattleSideEnum TaleWorlds.CampaignSystem.MapEvents.MapEventSide.MissionSide
get

◆ TroopCount

int TaleWorlds.CampaignSystem.MapEvents.MapEventSide.TroopCount
get

◆ NumRemainingSimulationTroops

int TaleWorlds.CampaignSystem.MapEvents.MapEventSide.NumRemainingSimulationTroops
get

◆ CasualtyStrength

float TaleWorlds.CampaignSystem.MapEvents.MapEventSide.CasualtyStrength
get

◆ MapEvent

MapEvent TaleWorlds.CampaignSystem.MapEvents.MapEventSide.MapEvent
get

◆ OtherSide

MapEventSide TaleWorlds.CampaignSystem.MapEvents.MapEventSide.OtherSide
get

◆ MapFaction

IFaction TaleWorlds.CampaignSystem.MapEvents.MapEventSide.MapFaction
get