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

Classes

class  PartyCommand
 
class  TroopComparer
 

Public Types

enum  TroopSortType {
  Invalid = -1 ,
  Custom = 0 ,
  Type ,
  Name ,
  Count ,
  Tier
}
 
enum  PartyRosterSide : byte {
  None = 99 ,
  Right = 1 ,
  Left = 0
}
 
enum  TroopType {
  Member = 0x1 ,
  Prisoner = 0x2 ,
  None
}
 
enum  PartyCommandCode {
  TransferTroop = 0 ,
  UpgradeTroop = 1 ,
  TransferPartyLeaderTroop = 2 ,
  TransferTroopToLeaderSlot = 3 ,
  ShiftTroop = 4 ,
  RecruitTroop = 5 ,
  ExecuteTroop = 6 ,
  TransferAllTroops = 7 ,
  SortTroops = 8
}
 
enum  TransferState {
  NotTransferable ,
  Transferable ,
  TransferableWithTrade
}
 

Public Member Functions

delegate void PresentationUpdate (PartyCommand command)
 
delegate void PartyGoldDelegate ()
 
delegate void PartyMoraleDelegate ()
 
delegate void PartyInfluenceDelegate ()
 
delegate void PartyHorseDelegate ()
 
delegate void AfterResetDelegate (PartyScreenLogic partyScreenLogic, bool fromCancel)
 
 PartyScreenLogic ()
 
void Initialize (PartyScreenLogicInitializationData initializationData)
 
void AddCommand (PartyCommand command)
 
bool ValidateCommand (PartyCommand command)
 
int GetIndexToInsertTroop (PartyRosterSide side, TroopType type, TroopRosterElement troop)
 
TroopSortType GetActiveSortTypeForSide (PartyRosterSide side)
 
bool GetIsAscendingSortForSide (PartyRosterSide side)
 
bool IsDoneActive ()
 
bool IsCancelActive ()
 
bool DoneLogic (bool isForced)
 
void OnPartyScreenClosed (bool fromCancel)
 
bool IsTroopTransferable (TroopType troopType, CharacterObject character, int side)
 
bool IsTroopRosterTransferable (TroopType troopType)
 
bool IsPrisonerRecruitable (TroopType troopType, CharacterObject character, PartyRosterSide side)
 
string GetRecruitableReasonText (CharacterObject character, bool isRecruitable, int troopCount, string fiveStackShortcutKeyText, string entireStackShortcutKeyText)
 
bool IsExecutable (TroopType troopType, CharacterObject character, PartyRosterSide side)
 
string GetExecutableReasonText (CharacterObject character, bool isExecutable)
 
int GetCurrentQuestCurrentCount ()
 
int GetCurrentQuestRequiredCount ()
 
void Reset (bool fromCancel)
 
void SavePartyScreenData ()
 
void ResetToLastSavedPartyScreenData (bool fromCancel)
 
void RemoveZeroCounts ()
 
int GetTroopRecruitableAmount (CharacterObject troop)
 
TroopRoster GetRoster (PartyRosterSide side, TroopType troopType)
 
bool IsThereAnyChanges ()
 
bool HaveRightSideGainedTroops ()
 
TroopComparer GetComparer (TroopSortType sortType)
 

Public Attributes

PartyPresentationDoneButtonDelegate PartyPresentationDoneButtonDelegate
 
PartyPresentationDoneButtonConditionDelegate PartyPresentationDoneButtonConditionDelegate
 
PartyPresentationCancelButtonActivateDelegate PartyPresentationCancelButtonActivateDelegate
 
PartyPresentationCancelButtonDelegate PartyPresentationCancelButtonDelegate
 
PresentationUpdate UpdateDelegate
 
IsTroopTransferableDelegate IsTroopTransferableDelegate
 
TroopRoster[] MemberRosters
 
TroopRoster[] PrisonerRosters
 
bool IsConsumablesChanges
 

Protected Member Functions

void TransferTroopToLeaderSlot (PartyCommand command)
 
void TransferTroop (PartyCommand command, bool invokeUpdate)
 
void ShiftTroop (PartyCommand command)
 
void TransferPartyLeaderTroop (PartyCommand command)
 
void UpgradeTroop (PartyCommand command)
 
void RecruitPrisoner (PartyCommand command)
 
void ExecuteTroop (PartyCommand command)
 
void TransferAllTroops (PartyCommand command)
 
void SortTroops (PartyCommand command)
 

Properties

TroopSortType ActiveOtherPartySortType [get, set]
 
TroopSortType ActiveMainPartySortType [get, set]
 
bool IsOtherPartySortAscending [get, set]
 
bool IsMainPartySortAscending [get, set]
 
TransferState MemberTransferState [get]
 
TransferState PrisonerTransferState [get]
 
TransferState AccompanyingTransferState [get]
 
TextObject LeftPartyName [get]
 
TextObject RightPartyName [get]
 
TextObject Header [get]
 
int LeftPartyMembersSizeLimit [get]
 
int LeftPartyPrisonersSizeLimit [get]
 
int RightPartyMembersSizeLimit [get]
 
int RightPartyPrisonersSizeLimit [get]
 
bool ShowProgressBar [get]
 
string DoneReasonString [get]
 
bool IsTroopUpgradesDisabled [get]
 
CharacterObject RightPartyLeader [get]
 
CharacterObject LeftPartyLeader [get]
 
PartyBase LeftOwnerParty [get]
 
PartyBase RightOwnerParty [get]
 
PartyScreenData CurrentData [get]
 
bool TransferHealthiesGetWoundedsFirst [get]
 
int QuestModeWageDaysMultiplier [get]
 
Game Game [get, set]
 

Events

PartyGoldDelegate PartyGoldChange
 
PartyMoraleDelegate PartyMoraleChange
 
PartyInfluenceDelegate PartyInfluenceChange
 
PartyHorseDelegate PartyHorseChange
 
PresentationUpdate Update
 
PartyScreenClosedDelegate PartyScreenClosedEvent
 
AfterResetDelegate AfterReset
 

Member Enumeration Documentation

◆ TroopSortType

Enumerator
Invalid 
Custom 
Type 
Name 
Count 
Tier 

◆ PartyRosterSide

Enumerator
None 

No identification.

Right 

Right hand side roster, Player's roster.

Left 

Left hand side roster, Trader's roster.

◆ TroopType

Enumerator
Member 
Prisoner 
None 

◆ PartyCommandCode

Enumerator
TransferTroop 
UpgradeTroop 
TransferPartyLeaderTroop 
TransferTroopToLeaderSlot 
ShiftTroop 
RecruitTroop 
ExecuteTroop 
TransferAllTroops 
SortTroops 

◆ TransferState

Enumerator
NotTransferable 
Transferable 
TransferableWithTrade 

Constructor & Destructor Documentation

◆ PartyScreenLogic()

TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyScreenLogic ( )

Member Function Documentation

◆ PresentationUpdate()

delegate void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PresentationUpdate ( PartyCommand  command)

◆ PartyGoldDelegate()

delegate void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyGoldDelegate ( )

◆ PartyMoraleDelegate()

delegate void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyMoraleDelegate ( )

◆ PartyInfluenceDelegate()

delegate void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyInfluenceDelegate ( )

◆ PartyHorseDelegate()

delegate void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyHorseDelegate ( )

◆ AfterResetDelegate()

delegate void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.AfterResetDelegate ( PartyScreenLogic  partyScreenLogic,
bool  fromCancel 
)

◆ Initialize()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.Initialize ( PartyScreenLogicInitializationData  initializationData)

◆ AddCommand()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.AddCommand ( PartyCommand  command)

◆ ValidateCommand()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.ValidateCommand ( PartyCommand  command)

◆ TransferTroopToLeaderSlot()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.TransferTroopToLeaderSlot ( PartyCommand  command)
protected

◆ TransferTroop()

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

◆ ShiftTroop()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.ShiftTroop ( PartyCommand  command)
protected

◆ TransferPartyLeaderTroop()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.TransferPartyLeaderTroop ( PartyCommand  command)
protected

◆ UpgradeTroop()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.UpgradeTroop ( PartyCommand  command)
protected

◆ RecruitPrisoner()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.RecruitPrisoner ( PartyCommand  command)
protected

◆ ExecuteTroop()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.ExecuteTroop ( PartyCommand  command)
protected

◆ TransferAllTroops()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.TransferAllTroops ( PartyCommand  command)
protected

◆ SortTroops()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.SortTroops ( PartyCommand  command)
protected

◆ GetIndexToInsertTroop()

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetIndexToInsertTroop ( PartyRosterSide  side,
TroopType  type,
TroopRosterElement  troop 
)

◆ GetActiveSortTypeForSide()

TroopSortType TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetActiveSortTypeForSide ( PartyRosterSide  side)

◆ GetIsAscendingSortForSide()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetIsAscendingSortForSide ( PartyRosterSide  side)

◆ IsDoneActive()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsDoneActive ( )

◆ IsCancelActive()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsCancelActive ( )

◆ DoneLogic()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.DoneLogic ( bool  isForced)

◆ OnPartyScreenClosed()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.OnPartyScreenClosed ( bool  fromCancel)

◆ IsTroopTransferable()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsTroopTransferable ( TroopType  troopType,
CharacterObject  character,
int  side 
)

◆ IsTroopRosterTransferable()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsTroopRosterTransferable ( TroopType  troopType)

◆ IsPrisonerRecruitable()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsPrisonerRecruitable ( TroopType  troopType,
CharacterObject  character,
PartyRosterSide  side 
)

◆ GetRecruitableReasonText()

string TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetRecruitableReasonText ( CharacterObject  character,
bool  isRecruitable,
int  troopCount,
string  fiveStackShortcutKeyText,
string  entireStackShortcutKeyText 
)

◆ IsExecutable()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsExecutable ( TroopType  troopType,
CharacterObject  character,
PartyRosterSide  side 
)

◆ GetExecutableReasonText()

string TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetExecutableReasonText ( CharacterObject  character,
bool  isExecutable 
)

◆ GetCurrentQuestCurrentCount()

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetCurrentQuestCurrentCount ( )

◆ GetCurrentQuestRequiredCount()

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetCurrentQuestRequiredCount ( )

◆ Reset()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.Reset ( bool  fromCancel)

◆ SavePartyScreenData()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.SavePartyScreenData ( )

◆ ResetToLastSavedPartyScreenData()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.ResetToLastSavedPartyScreenData ( bool  fromCancel)

◆ RemoveZeroCounts()

void TaleWorlds.CampaignSystem.Party.PartyScreenLogic.RemoveZeroCounts ( )

◆ GetTroopRecruitableAmount()

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetTroopRecruitableAmount ( CharacterObject  troop)

◆ GetRoster()

TroopRoster TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetRoster ( PartyRosterSide  side,
TroopType  troopType 
)

◆ IsThereAnyChanges()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsThereAnyChanges ( )

◆ HaveRightSideGainedTroops()

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.HaveRightSideGainedTroops ( )

◆ GetComparer()

TroopComparer TaleWorlds.CampaignSystem.Party.PartyScreenLogic.GetComparer ( TroopSortType  sortType)

Member Data Documentation

◆ PartyPresentationDoneButtonDelegate

PartyPresentationDoneButtonDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyPresentationDoneButtonDelegate

◆ PartyPresentationDoneButtonConditionDelegate

PartyPresentationDoneButtonConditionDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyPresentationDoneButtonConditionDelegate

◆ PartyPresentationCancelButtonActivateDelegate

PartyPresentationCancelButtonActivateDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyPresentationCancelButtonActivateDelegate

◆ PartyPresentationCancelButtonDelegate

PartyPresentationCancelButtonDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyPresentationCancelButtonDelegate

◆ UpdateDelegate

PresentationUpdate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.UpdateDelegate

◆ IsTroopTransferableDelegate

IsTroopTransferableDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsTroopTransferableDelegate

◆ MemberRosters

TroopRoster [] TaleWorlds.CampaignSystem.Party.PartyScreenLogic.MemberRosters

◆ PrisonerRosters

TroopRoster [] TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PrisonerRosters

◆ IsConsumablesChanges

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsConsumablesChanges

Property Documentation

◆ ActiveOtherPartySortType

TroopSortType TaleWorlds.CampaignSystem.Party.PartyScreenLogic.ActiveOtherPartySortType
getset

◆ ActiveMainPartySortType

TroopSortType TaleWorlds.CampaignSystem.Party.PartyScreenLogic.ActiveMainPartySortType
getset

◆ IsOtherPartySortAscending

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsOtherPartySortAscending
getset

◆ IsMainPartySortAscending

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsMainPartySortAscending
getset

◆ MemberTransferState

TransferState TaleWorlds.CampaignSystem.Party.PartyScreenLogic.MemberTransferState
get

◆ PrisonerTransferState

TransferState TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PrisonerTransferState
get

◆ AccompanyingTransferState

TransferState TaleWorlds.CampaignSystem.Party.PartyScreenLogic.AccompanyingTransferState
get

◆ LeftPartyName

TextObject TaleWorlds.CampaignSystem.Party.PartyScreenLogic.LeftPartyName
get

◆ RightPartyName

TextObject TaleWorlds.CampaignSystem.Party.PartyScreenLogic.RightPartyName
get

◆ Header

TextObject TaleWorlds.CampaignSystem.Party.PartyScreenLogic.Header
get

◆ LeftPartyMembersSizeLimit

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.LeftPartyMembersSizeLimit
get

◆ LeftPartyPrisonersSizeLimit

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.LeftPartyPrisonersSizeLimit
get

◆ RightPartyMembersSizeLimit

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.RightPartyMembersSizeLimit
get

◆ RightPartyPrisonersSizeLimit

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.RightPartyPrisonersSizeLimit
get

◆ ShowProgressBar

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.ShowProgressBar
get

◆ DoneReasonString

string TaleWorlds.CampaignSystem.Party.PartyScreenLogic.DoneReasonString
get

◆ IsTroopUpgradesDisabled

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.IsTroopUpgradesDisabled
get

◆ RightPartyLeader

CharacterObject TaleWorlds.CampaignSystem.Party.PartyScreenLogic.RightPartyLeader
get

◆ LeftPartyLeader

CharacterObject TaleWorlds.CampaignSystem.Party.PartyScreenLogic.LeftPartyLeader
get

◆ LeftOwnerParty

PartyBase TaleWorlds.CampaignSystem.Party.PartyScreenLogic.LeftOwnerParty
get

◆ RightOwnerParty

PartyBase TaleWorlds.CampaignSystem.Party.PartyScreenLogic.RightOwnerParty
get

◆ CurrentData

PartyScreenData TaleWorlds.CampaignSystem.Party.PartyScreenLogic.CurrentData
get

◆ TransferHealthiesGetWoundedsFirst

bool TaleWorlds.CampaignSystem.Party.PartyScreenLogic.TransferHealthiesGetWoundedsFirst
get

◆ QuestModeWageDaysMultiplier

int TaleWorlds.CampaignSystem.Party.PartyScreenLogic.QuestModeWageDaysMultiplier
get

◆ Game

Game TaleWorlds.CampaignSystem.Party.PartyScreenLogic.Game
getset

Event Documentation

◆ PartyGoldChange

PartyGoldDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyGoldChange

◆ PartyMoraleChange

PartyMoraleDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyMoraleChange

◆ PartyInfluenceChange

PartyInfluenceDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyInfluenceChange

◆ PartyHorseChange

PartyHorseDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyHorseChange

◆ Update

PresentationUpdate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.Update

◆ PartyScreenClosedEvent

PartyScreenClosedDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.PartyScreenClosedEvent

◆ AfterReset

AfterResetDelegate TaleWorlds.CampaignSystem.Party.PartyScreenLogic.AfterReset