Table of Contents

Class CustomBattleTroopSupplier

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class CustomBattleTroopSupplier : IMissionTroopSupplier
Inheritance
CustomBattleTroopSupplier
Implements
Inherited Members

Constructors

CustomBattleTroopSupplier(CustomBattleCombatant, bool, bool, bool, Func<BasicCharacterObject, bool>)

public CustomBattleTroopSupplier(CustomBattleCombatant customBattleCombatant, bool isPlayerSide, bool isPlayerGeneral, bool isSallyOut, Func<BasicCharacterObject, bool> customAllocationConditions = null)

Parameters

customBattleCombatant CustomBattleCombatant
isPlayerSide bool
isPlayerGeneral bool
isSallyOut bool
customAllocationConditions Func<BasicCharacterObject, bool>

Properties

AnyTroopRemainsToBeSupplied

public bool AnyTroopRemainsToBeSupplied { get; }

Property Value

bool

NumRemovedTroops

public int NumRemovedTroops { get; }

Property Value

int

NumTroopsNotSupplied

public int NumTroopsNotSupplied { get; }

Property Value

int

Methods

GetAllTroops()

public IEnumerable<IAgentOriginBase> GetAllTroops()

Returns

IEnumerable<IAgentOriginBase>

GetGeneralCharacter()

public BasicCharacterObject GetGeneralCharacter()

Returns

BasicCharacterObject

GetNumberOfPlayerControllableTroops()

public int GetNumberOfPlayerControllableTroops()

Returns

int

OnTroopKilled()

public void OnTroopKilled()

OnTroopRouted()

public void OnTroopRouted()

OnTroopWounded()

public void OnTroopWounded()

SupplyTroops(int)

public IEnumerable<IAgentOriginBase> SupplyTroops(int numberToAllocate)

Parameters

numberToAllocate int

Returns

IEnumerable<IAgentOriginBase>

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).