M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.Election.KingdomDecision Class Referenceabstract

Inherited by TaleWorlds.CampaignSystem.Election.DeclareWarDecision, TaleWorlds.CampaignSystem.Election.ExpelClanFromKingdomDecision, TaleWorlds.CampaignSystem.Election.KingSelectionKingdomDecision, TaleWorlds.CampaignSystem.Election.KingdomPolicyDecision, TaleWorlds.CampaignSystem.Election.MakePeaceKingdomDecision, TaleWorlds.CampaignSystem.Election.SettlementClaimantDecision, and TaleWorlds.CampaignSystem.Election.SettlementClaimantPreliminaryDecision.

Public Types

enum  SupportStatus {
  Equal ,
  Majority ,
  Minority
}
 

Public Member Functions

abstract bool IsAllowed ()
 
int GetInfluenceCost (Clan sponsorClan)
 
abstract int GetProposalInfluenceCost ()
 
abstract TextObject GetGeneralTitle ()
 
abstract TextObject GetSupportTitle ()
 
abstract TextObject GetChooseTitle ()
 
abstract TextObject GetSupportDescription ()
 
abstract TextObject GetChooseDescription ()
 
virtual float CalculateMeritOfOutcome (DecisionOutcome candidateOutcome)
 
abstract IEnumerable< DecisionOutcomeDetermineInitialCandidates ()
 
MBList< DecisionOutcomeNarrowDownCandidates (MBList< DecisionOutcome > initialCandidates, int maxCandidateCount)
 
abstract Clan DetermineChooser ()
 
IEnumerable< SupporterDetermineSupporters ()
 
bool ShouldBeCancelled ()
 
DecisionOutcome DetermineSupportOption (Supporter supporter, MBReadOnlyList< DecisionOutcome > possibleOutcomes, out Supporter.SupportWeights supportWeightOfSelectedOutcome, bool calculateRelationshipEffect)
 
abstract float DetermineSupport (Clan clan, DecisionOutcome possibleOutcome)
 
abstract void DetermineSponsors (MBReadOnlyList< DecisionOutcome > possibleOutcomes)
 
abstract void ApplyChosenOutcome (DecisionOutcome chosenOutcome)
 
int GetInfluenceCost (DecisionOutcome decisionOutcome, Clan clan, Supporter.SupportWeights supportWeight)
 
abstract TextObject GetSecondaryEffects ()
 
abstract void ApplySecondaryEffects (MBReadOnlyList< DecisionOutcome > possibleOutcomes, DecisionOutcome chosenOutcome)
 
abstract TextObject GetChosenOutcomeText (DecisionOutcome chosenOutcome, SupportStatus supportStatus, bool isShortVersion=false)
 
MBList< DecisionOutcomeSortDecisionOutcomes (MBReadOnlyList< DecisionOutcome > possibleOutcomes)
 
abstract DecisionOutcome GetQueriedDecisionOutcome (MBReadOnlyList< DecisionOutcome > possibleOutcomes)
 
bool IsSingleClanDecision ()
 
virtual float CalculateRelationshipEffectWithSponsor (Clan clan)
 
int GetInfluenceCostOfSupport (Clan clan, Supporter.SupportWeights supportWeight)
 
virtual bool OnShowDecision ()
 
virtual KingdomDecision GetFollowUpDecision ()
 

Public Attributes

SupportStatus SupportStatusOfFinalDecision
 

Protected Member Functions

 KingdomDecision (Clan proposerClan)
 
virtual bool ShouldBeCancelledInternal ()
 
virtual bool CanProposerClanChangeOpinion ()
 
void AssignDefaultSponsor (DecisionOutcome outcome)
 
virtual int GetInfluenceCostOfSupportInternal (Supporter.SupportWeights supportWeight)
 

Properties

Kingdom Kingdom [get]
 
Clan ProposerClan [get]
 
bool IsEnforced [get, set]
 
bool PlayerExamined [get, set]
 
bool NotifyPlayer [get, set]
 
bool IsPlayerParticipant [get]
 
CampaignTime TriggerTime [get, protected set]
 
virtual bool IsKingsVoteAllowed [get]
 
virtual int HoursToWait [get]
 
bool NeedsPlayerResolution [get]
 

Member Enumeration Documentation

◆ SupportStatus

Enumerator
Equal 
Majority 
Minority 

Constructor & Destructor Documentation

◆ KingdomDecision()

TaleWorlds.CampaignSystem.Election.KingdomDecision.KingdomDecision ( Clan  proposerClan)
protected

Member Function Documentation

◆ IsAllowed()

◆ GetInfluenceCost() [1/2]

int TaleWorlds.CampaignSystem.Election.KingdomDecision.GetInfluenceCost ( Clan  sponsorClan)

◆ GetProposalInfluenceCost()

◆ GetGeneralTitle()

◆ GetSupportTitle()

◆ GetChooseTitle()

◆ GetSupportDescription()

◆ GetChooseDescription()

◆ CalculateMeritOfOutcome()

virtual float TaleWorlds.CampaignSystem.Election.KingdomDecision.CalculateMeritOfOutcome ( DecisionOutcome  candidateOutcome)
virtual

◆ DetermineInitialCandidates()

◆ NarrowDownCandidates()

MBList< DecisionOutcome > TaleWorlds.CampaignSystem.Election.KingdomDecision.NarrowDownCandidates ( MBList< DecisionOutcome initialCandidates,
int  maxCandidateCount 
)

◆ DetermineChooser()

◆ DetermineSupporters()

IEnumerable< Supporter > TaleWorlds.CampaignSystem.Election.KingdomDecision.DetermineSupporters ( )

◆ ShouldBeCancelledInternal()

◆ CanProposerClanChangeOpinion()

virtual bool TaleWorlds.CampaignSystem.Election.KingdomDecision.CanProposerClanChangeOpinion ( )
protectedvirtual

◆ ShouldBeCancelled()

bool TaleWorlds.CampaignSystem.Election.KingdomDecision.ShouldBeCancelled ( )

◆ DetermineSupportOption()

DecisionOutcome TaleWorlds.CampaignSystem.Election.KingdomDecision.DetermineSupportOption ( Supporter  supporter,
MBReadOnlyList< DecisionOutcome possibleOutcomes,
out Supporter::SupportWeights  supportWeightOfSelectedOutcome,
bool  calculateRelationshipEffect 
)

◆ DetermineSupport()

◆ DetermineSponsors()

◆ AssignDefaultSponsor()

void TaleWorlds.CampaignSystem.Election.KingdomDecision.AssignDefaultSponsor ( DecisionOutcome  outcome)
protected

◆ ApplyChosenOutcome()

◆ GetInfluenceCost() [2/2]

int TaleWorlds.CampaignSystem.Election.KingdomDecision.GetInfluenceCost ( DecisionOutcome  decisionOutcome,
Clan  clan,
Supporter::SupportWeights  supportWeight 
)

◆ GetSecondaryEffects()

◆ ApplySecondaryEffects()

◆ GetChosenOutcomeText()

◆ SortDecisionOutcomes()

MBList< DecisionOutcome > TaleWorlds.CampaignSystem.Election.KingdomDecision.SortDecisionOutcomes ( MBReadOnlyList< DecisionOutcome possibleOutcomes)

◆ GetQueriedDecisionOutcome()

◆ IsSingleClanDecision()

bool TaleWorlds.CampaignSystem.Election.KingdomDecision.IsSingleClanDecision ( )

◆ CalculateRelationshipEffectWithSponsor()

virtual float TaleWorlds.CampaignSystem.Election.KingdomDecision.CalculateRelationshipEffectWithSponsor ( Clan  clan)
virtual

◆ GetInfluenceCostOfSupport()

int TaleWorlds.CampaignSystem.Election.KingdomDecision.GetInfluenceCostOfSupport ( Clan  clan,
Supporter::SupportWeights  supportWeight 
)

◆ GetInfluenceCostOfSupportInternal()

virtual int TaleWorlds.CampaignSystem.Election.KingdomDecision.GetInfluenceCostOfSupportInternal ( Supporter::SupportWeights  supportWeight)
protectedvirtual

◆ OnShowDecision()

virtual bool TaleWorlds.CampaignSystem.Election.KingdomDecision.OnShowDecision ( )
virtual

◆ GetFollowUpDecision()

virtual KingdomDecision TaleWorlds.CampaignSystem.Election.KingdomDecision.GetFollowUpDecision ( )
virtual

Member Data Documentation

◆ SupportStatusOfFinalDecision

SupportStatus TaleWorlds.CampaignSystem.Election.KingdomDecision.SupportStatusOfFinalDecision

Property Documentation

◆ Kingdom

Kingdom TaleWorlds.CampaignSystem.Election.KingdomDecision.Kingdom
get

◆ ProposerClan

Clan TaleWorlds.CampaignSystem.Election.KingdomDecision.ProposerClan
get

◆ IsEnforced

bool TaleWorlds.CampaignSystem.Election.KingdomDecision.IsEnforced
getset

◆ PlayerExamined

bool TaleWorlds.CampaignSystem.Election.KingdomDecision.PlayerExamined
getset

◆ NotifyPlayer

bool TaleWorlds.CampaignSystem.Election.KingdomDecision.NotifyPlayer
getset

◆ IsPlayerParticipant

bool TaleWorlds.CampaignSystem.Election.KingdomDecision.IsPlayerParticipant
get

◆ TriggerTime

CampaignTime TaleWorlds.CampaignSystem.Election.KingdomDecision.TriggerTime
getprotected set

◆ IsKingsVoteAllowed

virtual bool TaleWorlds.CampaignSystem.Election.KingdomDecision.IsKingsVoteAllowed
get

◆ HoursToWait

virtual int TaleWorlds.CampaignSystem.Election.KingdomDecision.HoursToWait
getprotected

◆ NeedsPlayerResolution

bool TaleWorlds.CampaignSystem.Election.KingdomDecision.NeedsPlayerResolution
get