M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier Class Reference

Inherits TaleWorlds.Core.IMissionTroopSupplier.

Public Member Functions

 PartyGroupTroopSupplier (MapEvent mapEvent, BattleSideEnum side, FlattenedTroopRoster priorTroops=null, Func< UniqueTroopDescriptor, MapEventParty, bool > customAllocationConditions=null)
 
IEnumerable< IAgentOriginBaseSupplyTroops (int numberToAllocate)
 
IEnumerable< IAgentOriginBaseGetAllTroops ()
 
BasicCharacterObject GetGeneralCharacter ()
 
int GetNumberOfPlayerControllableTroops ()
 
void OnTroopWounded (UniqueTroopDescriptor troopDescriptor)
 
void OnTroopKilled (UniqueTroopDescriptor troopDescriptor)
 
void OnTroopRouted (UniqueTroopDescriptor troopDescriptor)
 
PartyBase GetParty (UniqueTroopDescriptor troopDescriptor)
 
void OnTroopScoreHit (UniqueTroopDescriptor descriptor, BasicCharacterObject attackedCharacter, int damage, bool isFatal, bool isTeamKill, WeaponComponentData attackerWeapon)
 
IEnumerable< IAgentOriginBaseSupplyTroops (int numberToAllocate)
 
IEnumerable< IAgentOriginBaseGetAllTroops ()
 
BasicCharacterObject GetGeneralCharacter ()
 
int GetNumberOfPlayerControllableTroops ()
 

Properties

int NumRemovedTroops [get]
 
int NumTroopsNotSupplied [get]
 
bool AnyTroopRemainsToBeSupplied [get]
 
- Properties inherited from TaleWorlds.Core.IMissionTroopSupplier
int NumRemovedTroops [get]
 
int NumTroopsNotSupplied [get]
 
bool AnyTroopRemainsToBeSupplied [get]
 

Constructor & Destructor Documentation

◆ PartyGroupTroopSupplier()

TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.PartyGroupTroopSupplier ( MapEvent  mapEvent,
BattleSideEnum  side,
FlattenedTroopRoster  priorTroops = null,
Func< UniqueTroopDescriptor, MapEventParty, bool >  customAllocationConditions = null 
)

Member Function Documentation

◆ SupplyTroops()

IEnumerable< IAgentOriginBase > TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.SupplyTroops ( int  numberToAllocate)

◆ GetAllTroops()

IEnumerable< IAgentOriginBase > TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.GetAllTroops ( )

◆ GetGeneralCharacter()

BasicCharacterObject TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.GetGeneralCharacter ( )

◆ GetNumberOfPlayerControllableTroops()

int TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.GetNumberOfPlayerControllableTroops ( )

◆ OnTroopWounded()

void TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.OnTroopWounded ( UniqueTroopDescriptor  troopDescriptor)

◆ OnTroopKilled()

void TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.OnTroopKilled ( UniqueTroopDescriptor  troopDescriptor)

◆ OnTroopRouted()

void TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.OnTroopRouted ( UniqueTroopDescriptor  troopDescriptor)

◆ GetParty()

PartyBase TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.GetParty ( UniqueTroopDescriptor  troopDescriptor)

◆ OnTroopScoreHit()

void TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.OnTroopScoreHit ( UniqueTroopDescriptor  descriptor,
BasicCharacterObject  attackedCharacter,
int  damage,
bool  isFatal,
bool  isTeamKill,
WeaponComponentData  attackerWeapon 
)

Property Documentation

◆ NumRemovedTroops

int TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.NumRemovedTroops
get

◆ NumTroopsNotSupplied

int TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.NumTroopsNotSupplied
get

◆ AnyTroopRemainsToBeSupplied

bool TaleWorlds.CampaignSystem.TroopSuppliers.PartyGroupTroopSupplier.AnyTroopRemainsToBeSupplied
get