Table of Contents

Class PartyScreenLogic

Namespace
TaleWorlds.CampaignSystem.Party
Assembly
TaleWorlds.CampaignSystem.dll
public class PartyScreenLogic
Inheritance
PartyScreenLogic
Inherited Members

Constructors

PartyScreenLogic()

public PartyScreenLogic()

Fields

IsConsumablesChanges

public bool IsConsumablesChanges

Field Value

bool

IsTroopTransferableDelegate

public IsTroopTransferableDelegate IsTroopTransferableDelegate

Field Value

IsTroopTransferableDelegate

MemberRosters

public TroopRoster[] MemberRosters

Field Value

TroopRoster[]

PartyPresentationCancelButtonActivateDelegate

public PartyPresentationCancelButtonActivateDelegate PartyPresentationCancelButtonActivateDelegate

Field Value

PartyPresentationCancelButtonActivateDelegate

PartyPresentationCancelButtonDelegate

public PartyPresentationCancelButtonDelegate PartyPresentationCancelButtonDelegate

Field Value

PartyPresentationCancelButtonDelegate

PartyPresentationDoneButtonConditionDelegate

public PartyPresentationDoneButtonConditionDelegate PartyPresentationDoneButtonConditionDelegate

Field Value

PartyPresentationDoneButtonConditionDelegate

PartyPresentationDoneButtonDelegate

public PartyPresentationDoneButtonDelegate PartyPresentationDoneButtonDelegate

Field Value

PartyPresentationDoneButtonDelegate

PrisonerRosters

public TroopRoster[] PrisonerRosters

Field Value

TroopRoster[]

UpdateDelegate

public PartyScreenLogic.PresentationUpdate UpdateDelegate

Field Value

PartyScreenLogic.PresentationUpdate

Properties

AccompanyingTransferState

public PartyScreenLogic.TransferState AccompanyingTransferState { get; }

Property Value

PartyScreenLogic.TransferState

ActiveMainPartySortType

public PartyScreenLogic.TroopSortType ActiveMainPartySortType { get; set; }

Property Value

PartyScreenLogic.TroopSortType

ActiveOtherPartySortType

public PartyScreenLogic.TroopSortType ActiveOtherPartySortType { get; set; }

Property Value

PartyScreenLogic.TroopSortType

CurrentData

public PartyScreenData CurrentData { get; }

Property Value

PartyScreenData

DoneReasonString

public string DoneReasonString { get; }

Property Value

string

Game

public Game Game { get; set; }

Property Value

Game

Header

public TextObject Header { get; }

Property Value

TextObject

IsMainPartySortAscending

public bool IsMainPartySortAscending { get; set; }

Property Value

bool

IsOtherPartySortAscending

public bool IsOtherPartySortAscending { get; set; }

Property Value

bool

IsTroopUpgradesDisabled

public bool IsTroopUpgradesDisabled { get; }

Property Value

bool

LeftOwnerParty

public PartyBase LeftOwnerParty { get; }

Property Value

PartyBase

LeftPartyLeader

public CharacterObject LeftPartyLeader { get; }

Property Value

CharacterObject

LeftPartyMembersSizeLimit

public int LeftPartyMembersSizeLimit { get; }

Property Value

int

LeftPartyName

public TextObject LeftPartyName { get; }

Property Value

TextObject

LeftPartyPrisonersSizeLimit

public int LeftPartyPrisonersSizeLimit { get; }

Property Value

int

MemberTransferState

public PartyScreenLogic.TransferState MemberTransferState { get; }

Property Value

PartyScreenLogic.TransferState

PrisonerTransferState

public PartyScreenLogic.TransferState PrisonerTransferState { get; }

Property Value

PartyScreenLogic.TransferState

QuestModeWageDaysMultiplier

public int QuestModeWageDaysMultiplier { get; }

Property Value

int

RightOwnerParty

public PartyBase RightOwnerParty { get; }

Property Value

PartyBase

RightPartyLeader

public CharacterObject RightPartyLeader { get; }

Property Value

CharacterObject

RightPartyMembersSizeLimit

public int RightPartyMembersSizeLimit { get; }

Property Value

int

RightPartyName

public TextObject RightPartyName { get; }

Property Value

TextObject

RightPartyPrisonersSizeLimit

public int RightPartyPrisonersSizeLimit { get; }

Property Value

int

ShowProgressBar

public bool ShowProgressBar { get; }

Property Value

bool

TransferHealthiesGetWoundedsFirst

public bool TransferHealthiesGetWoundedsFirst { get; }

Property Value

bool

Methods

AddCommand(PartyCommand)

public void AddCommand(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

DoneLogic(bool)

public bool DoneLogic(bool isForced)

Parameters

isForced bool

Returns

bool

ExecuteTroop(PartyCommand)

protected void ExecuteTroop(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

GetActiveSortTypeForSide(PartyRosterSide)

public PartyScreenLogic.TroopSortType GetActiveSortTypeForSide(PartyScreenLogic.PartyRosterSide side)

Parameters

side PartyScreenLogic.PartyRosterSide

Returns

PartyScreenLogic.TroopSortType

GetComparer(TroopSortType)

public PartyScreenLogic.TroopComparer GetComparer(PartyScreenLogic.TroopSortType sortType)

Parameters

sortType PartyScreenLogic.TroopSortType

Returns

PartyScreenLogic.TroopComparer

GetCurrentQuestCurrentCount()

public int GetCurrentQuestCurrentCount()

Returns

int

GetCurrentQuestRequiredCount()

public int GetCurrentQuestRequiredCount()

Returns

int

GetExecutableReasonText(CharacterObject, bool)

public string GetExecutableReasonText(CharacterObject character, bool isExecutable)

Parameters

character CharacterObject
isExecutable bool

Returns

string

GetIndexToInsertTroop(PartyRosterSide, TroopType, TroopRosterElement)

public int GetIndexToInsertTroop(PartyScreenLogic.PartyRosterSide side, PartyScreenLogic.TroopType type, TroopRosterElement troop)

Parameters

side PartyScreenLogic.PartyRosterSide
type PartyScreenLogic.TroopType
troop TroopRosterElement

Returns

int

GetIsAscendingSortForSide(PartyRosterSide)

public bool GetIsAscendingSortForSide(PartyScreenLogic.PartyRosterSide side)

Parameters

side PartyScreenLogic.PartyRosterSide

Returns

bool

GetRecruitableReasonText(CharacterObject, bool, int, string, string)

public string GetRecruitableReasonText(CharacterObject character, bool isRecruitable, int troopCount, string fiveStackShortcutKeyText, string entireStackShortcutKeyText)

Parameters

character CharacterObject
isRecruitable bool
troopCount int
fiveStackShortcutKeyText string
entireStackShortcutKeyText string

Returns

string

GetRoster(PartyRosterSide, TroopType)

public TroopRoster GetRoster(PartyScreenLogic.PartyRosterSide side, PartyScreenLogic.TroopType troopType)

Parameters

side PartyScreenLogic.PartyRosterSide
troopType PartyScreenLogic.TroopType

Returns

TroopRoster

GetTroopRecruitableAmount(CharacterObject)

public int GetTroopRecruitableAmount(CharacterObject troop)

Parameters

troop CharacterObject

Returns

int

HaveRightSideGainedTroops()

public bool HaveRightSideGainedTroops()

Returns

bool

Initialize(PartyScreenLogicInitializationData)

public void Initialize(PartyScreenLogicInitializationData initializationData)

Parameters

initializationData PartyScreenLogicInitializationData

IsCancelActive()

public bool IsCancelActive()

Returns

bool

IsDoneActive()

public bool IsDoneActive()

Returns

bool

IsExecutable(TroopType, CharacterObject, PartyRosterSide)

public bool IsExecutable(PartyScreenLogic.TroopType troopType, CharacterObject character, PartyScreenLogic.PartyRosterSide side)

Parameters

troopType PartyScreenLogic.TroopType
character CharacterObject
side PartyScreenLogic.PartyRosterSide

Returns

bool

IsPrisonerRecruitable(TroopType, CharacterObject, PartyRosterSide)

public bool IsPrisonerRecruitable(PartyScreenLogic.TroopType troopType, CharacterObject character, PartyScreenLogic.PartyRosterSide side)

Parameters

troopType PartyScreenLogic.TroopType
character CharacterObject
side PartyScreenLogic.PartyRosterSide

Returns

bool

IsThereAnyChanges()

public bool IsThereAnyChanges()

Returns

bool

IsTroopRosterTransferable(TroopType)

public bool IsTroopRosterTransferable(PartyScreenLogic.TroopType troopType)

Parameters

troopType PartyScreenLogic.TroopType

Returns

bool

IsTroopTransferable(TroopType, CharacterObject, int)

public bool IsTroopTransferable(PartyScreenLogic.TroopType troopType, CharacterObject character, int side)

Parameters

troopType PartyScreenLogic.TroopType
character CharacterObject
side int

Returns

bool

OnPartyScreenClosed(bool)

public void OnPartyScreenClosed(bool fromCancel)

Parameters

fromCancel bool

RecruitPrisoner(PartyCommand)

protected void RecruitPrisoner(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

RemoveZeroCounts()

public void RemoveZeroCounts()

Reset(bool)

public void Reset(bool fromCancel)

Parameters

fromCancel bool

ResetToLastSavedPartyScreenData(bool)

public void ResetToLastSavedPartyScreenData(bool fromCancel)

Parameters

fromCancel bool

SavePartyScreenData()

public void SavePartyScreenData()

ShiftTroop(PartyCommand)

protected void ShiftTroop(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

SortTroops(PartyCommand)

protected void SortTroops(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

TransferAllTroops(PartyCommand)

protected void TransferAllTroops(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

TransferPartyLeaderTroop(PartyCommand)

protected void TransferPartyLeaderTroop(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

TransferTroop(PartyCommand, bool)

protected void TransferTroop(PartyScreenLogic.PartyCommand command, bool invokeUpdate)

Parameters

command PartyScreenLogic.PartyCommand
invokeUpdate bool

TransferTroopToLeaderSlot(PartyCommand)

protected void TransferTroopToLeaderSlot(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

UpgradeTroop(PartyCommand)

protected void UpgradeTroop(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

ValidateCommand(PartyCommand)

public bool ValidateCommand(PartyScreenLogic.PartyCommand command)

Parameters

command PartyScreenLogic.PartyCommand

Returns

bool

Events

AfterReset

public event PartyScreenLogic.AfterResetDelegate AfterReset

Event Type

PartyScreenLogic.AfterResetDelegate

PartyGoldChange

public event PartyScreenLogic.PartyGoldDelegate PartyGoldChange

Event Type

PartyScreenLogic.PartyGoldDelegate

PartyHorseChange

public event PartyScreenLogic.PartyHorseDelegate PartyHorseChange

Event Type

PartyScreenLogic.PartyHorseDelegate

PartyInfluenceChange

public event PartyScreenLogic.PartyInfluenceDelegate PartyInfluenceChange

Event Type

PartyScreenLogic.PartyInfluenceDelegate

PartyMoraleChange

public event PartyScreenLogic.PartyMoraleDelegate PartyMoraleChange

Event Type

PartyScreenLogic.PartyMoraleDelegate

PartyScreenClosedEvent

public event PartyScreenClosedDelegate PartyScreenClosedEvent

Event Type

PartyScreenClosedDelegate

Update

public event PartyScreenLogic.PresentationUpdate Update

Event Type

PartyScreenLogic.PresentationUpdate

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