M&B: Bannerlord 1.3.4
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.Kingdom Class Referencesealed

Inherits TaleWorlds.ObjectSystem.MBObjectBase, and TaleWorlds.CampaignSystem.IFaction.

Public Member Functions

override TextObject GetName ()
 
override string ToString ()
 
void UpdateFactionsAtWarWith ()
 
void UpdateAlliedKingdoms ()
 
 Kingdom ()
 
void InitializeKingdom (TextObject name, TextObject informalName, CultureObject culture, Banner banner, uint kingdomColor1, uint kingdomColor2, Settlement initialHomeSettlement, TextObject encyclopediaText, TextObject encyclopediaTitle, TextObject encyclopediaRulerTitle)
 
void ChangeKingdomName (TextObject name, TextObject informalName)
 
void OnHeroChangedState (Hero hero, Hero.CharacterStates oldState)
 
bool IsAllyWith (Kingdom other)
 
bool HasCalledToWar (Kingdom other)
 
bool IsAtWarWith (IFaction other)
 
bool IsAtConstantWarWith (IFaction other)
 
StanceLink GetStanceWith (IFaction other)
 
void CreateArmy (Hero armyLeader, Settlement targetSettlement, Army.ArmyTypes selectedArmyType, MBReadOnlyList< MobileParty > partiesToCallToArmy=null)
 
void AddDecision (KingdomDecision kingdomDecision, bool ignoreInfluenceCost=false)
 
void RemoveDecision (KingdomDecision kingdomDecision)
 
void OnKingdomDecisionConcluded ()
 
void AddPolicy (PolicyObject policy)
 
void RemovePolicy (PolicyObject policy)
 
bool HasPolicy (PolicyObject policy)
 
override void Deserialize (MBObjectManager objectManager, XmlNode node)
 De-serializes the object from an XmlNode.
 
void OnFortificationAdded (Town fortification)
 
void OnFortificationRemoved (Town fortification)
 
void OnHeroAdded (Hero hero)
 
void OnHeroRemoved (Hero hero)
 
void OnWarPartyAdded (WarPartyComponent warPartyComponent)
 
void OnWarPartyRemoved (WarPartyComponent warPartyComponent)
 
void CalculateMidSettlement ()
 
void ReactivateKingdom ()
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
override int GetHashCode ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Static Public Member Functions

static Kingdom CreateKingdom (string stringID)
 

Public Attributes

int PoliticalStagnation
 

Protected Member Functions

override void AfterLoad ()
 
- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 

Properties

TextObject Name [get]
 
TextObject InformalName [get]
 
TextObject EncyclopediaText [get]
 
TextObject EncyclopediaTitle [get]
 
TextObject EncyclopediaRulerTitle [get]
 
string EncyclopediaLink [get]
 
TextObject EncyclopediaLinkWithName [get]
 
MBReadOnlyList< KingdomDecisionUnresolvedDecisions [get]
 
CultureObject Culture [get]
 
Settlement InitialHomeSettlement [get]
 Point to spawn around if no settlement remained.
 
bool IsMapFaction [get]
 
bool HasNavalNavigationCapability [get]
 
uint Color [get]
 
uint Color2 [get]
 
uint PrimaryBannerColor [get]
 
uint SecondaryBannerColor [get]
 
float MainHeroCrimeRating [get, set]
 
MBReadOnlyList< IFactionFactionsAtWarWith [get]
 
MBReadOnlyList< KingdomAlliedKingdoms [get]
 
MBReadOnlyList< TownFiefs [get]
 
MBReadOnlyList< VillageVillages [get]
 
MBReadOnlyList< SettlementSettlements [get]
 
MBReadOnlyList< HeroHeroes [get]
 
MBReadOnlyList< HeroAliveLords [get]
 
MBReadOnlyList< HeroDeadLords [get]
 
MBReadOnlyList< WarPartyComponentWarPartyComponents [get]
 
float DailyCrimeRatingChange [get]
 
ExplainedNumber DailyCrimeRatingChangeExplained [get]
 
CharacterObject BasicTroop [get]
 
Hero Leader [get]
 
Banner Banner [get, set]
 
bool IsBanditFaction [get]
 
bool IsMinorFaction [get]
 
bool IsRebelClan [get]
 
bool IsClan [get]
 
bool IsOutlaw [get]
 
MBReadOnlyList< ClanClans [get]
 
Clan RulingClan [get, set]
 
int LastArmyCreationDay [get]
 
MBReadOnlyList< ArmyArmies [get]
 
float CurrentTotalStrength [get]
 
Settlement FactionMidSettlement [get]
 
float DistanceToClosestNonAllyFortification [get]
 
IList< PolicyObjectActivePolicies [get]
 
static MBReadOnlyList< KingdomAll [get]
 
CampaignTime LastKingdomDecisionConclusionDate [get]
 
bool IsEliminated [get]
 
CampaignTime LastMercenaryOfferTime [get, set]
 
IFaction MapFaction [get]
 
CampaignTime NotAttackableByPlayerUntilTime [get, set]
 
float Aggressiveness [get]
 Kingdom Aggressiveness between 0 and 100 This is used for AI in evaluating peace offers and war proposals A kingdom with high aggressiveness can be declared war at without penalty.
 
IEnumerable< MobilePartyAllParties [get]
 
int MercenaryWallet [get]
 
int TributeWallet [get, set]
 Gold for spending on tributes. Can be negative which means tribute debt.

 
int KingdomBudgetWallet [get, set]
 
int CallToWarWallet [get, set]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 
- Properties inherited from TaleWorlds.CampaignSystem.IFaction
string StringId [get]
 
MBGUID Id [get]
 

Constructor & Destructor Documentation

◆ Kingdom()

TaleWorlds.CampaignSystem.Kingdom.Kingdom ( )

Member Function Documentation

◆ GetName()

override TextObject TaleWorlds.CampaignSystem.Kingdom.GetName ( )
virtual

◆ ToString()

override string TaleWorlds.CampaignSystem.Kingdom.ToString ( )

◆ UpdateFactionsAtWarWith()

void TaleWorlds.CampaignSystem.Kingdom.UpdateFactionsAtWarWith ( )

◆ UpdateAlliedKingdoms()

void TaleWorlds.CampaignSystem.Kingdom.UpdateAlliedKingdoms ( )

◆ CreateKingdom()

static Kingdom TaleWorlds.CampaignSystem.Kingdom.CreateKingdom ( string stringID)
static

◆ InitializeKingdom()

void TaleWorlds.CampaignSystem.Kingdom.InitializeKingdom ( TextObject name,
TextObject informalName,
CultureObject culture,
Banner banner,
uint kingdomColor1,
uint kingdomColor2,
Settlement initialHomeSettlement,
TextObject encyclopediaText,
TextObject encyclopediaTitle,
TextObject encyclopediaRulerTitle )

◆ ChangeKingdomName()

void TaleWorlds.CampaignSystem.Kingdom.ChangeKingdomName ( TextObject name,
TextObject informalName )

◆ OnHeroChangedState()

void TaleWorlds.CampaignSystem.Kingdom.OnHeroChangedState ( Hero hero,
Hero.CharacterStates oldState )

◆ AfterLoad()

override void TaleWorlds.CampaignSystem.Kingdom.AfterLoad ( )
protectedvirtual

◆ IsAllyWith()

bool TaleWorlds.CampaignSystem.Kingdom.IsAllyWith ( Kingdom other)

◆ HasCalledToWar()

bool TaleWorlds.CampaignSystem.Kingdom.HasCalledToWar ( Kingdom other)

◆ IsAtWarWith()

bool TaleWorlds.CampaignSystem.Kingdom.IsAtWarWith ( IFaction other)

◆ IsAtConstantWarWith()

bool TaleWorlds.CampaignSystem.Kingdom.IsAtConstantWarWith ( IFaction other)

◆ GetStanceWith()

StanceLink TaleWorlds.CampaignSystem.Kingdom.GetStanceWith ( IFaction other)

◆ CreateArmy()

void TaleWorlds.CampaignSystem.Kingdom.CreateArmy ( Hero armyLeader,
Settlement targetSettlement,
Army.ArmyTypes selectedArmyType,
MBReadOnlyList< MobileParty > partiesToCallToArmy = null )

◆ AddDecision()

void TaleWorlds.CampaignSystem.Kingdom.AddDecision ( KingdomDecision kingdomDecision,
bool ignoreInfluenceCost = false )

◆ RemoveDecision()

void TaleWorlds.CampaignSystem.Kingdom.RemoveDecision ( KingdomDecision kingdomDecision)

◆ OnKingdomDecisionConcluded()

void TaleWorlds.CampaignSystem.Kingdom.OnKingdomDecisionConcluded ( )

◆ AddPolicy()

void TaleWorlds.CampaignSystem.Kingdom.AddPolicy ( PolicyObject policy)

◆ RemovePolicy()

void TaleWorlds.CampaignSystem.Kingdom.RemovePolicy ( PolicyObject policy)

◆ HasPolicy()

bool TaleWorlds.CampaignSystem.Kingdom.HasPolicy ( PolicyObject policy)

◆ Deserialize()

override void TaleWorlds.CampaignSystem.Kingdom.Deserialize ( MBObjectManager objectManager,
XmlNode node )
virtual
Parameters
objectManagerObject manager
nodeXmlNode to be de-serialized from.

Reimplemented from TaleWorlds.ObjectSystem.MBObjectBase.

◆ OnFortificationAdded()

void TaleWorlds.CampaignSystem.Kingdom.OnFortificationAdded ( Town fortification)

◆ OnFortificationRemoved()

void TaleWorlds.CampaignSystem.Kingdom.OnFortificationRemoved ( Town fortification)

◆ OnHeroAdded()

void TaleWorlds.CampaignSystem.Kingdom.OnHeroAdded ( Hero hero)

◆ OnHeroRemoved()

void TaleWorlds.CampaignSystem.Kingdom.OnHeroRemoved ( Hero hero)

◆ OnWarPartyAdded()

void TaleWorlds.CampaignSystem.Kingdom.OnWarPartyAdded ( WarPartyComponent warPartyComponent)

◆ OnWarPartyRemoved()

void TaleWorlds.CampaignSystem.Kingdom.OnWarPartyRemoved ( WarPartyComponent warPartyComponent)

◆ CalculateMidSettlement()

void TaleWorlds.CampaignSystem.Kingdom.CalculateMidSettlement ( )

◆ ReactivateKingdom()

void TaleWorlds.CampaignSystem.Kingdom.ReactivateKingdom ( )

Member Data Documentation

◆ PoliticalStagnation

int TaleWorlds.CampaignSystem.Kingdom.PoliticalStagnation

Property Documentation

◆ Name

TextObject TaleWorlds.CampaignSystem.Kingdom.Name
get

◆ InformalName

TextObject TaleWorlds.CampaignSystem.Kingdom.InformalName
get

◆ EncyclopediaText

TextObject TaleWorlds.CampaignSystem.Kingdom.EncyclopediaText
get

◆ EncyclopediaTitle

TextObject TaleWorlds.CampaignSystem.Kingdom.EncyclopediaTitle
get

◆ EncyclopediaRulerTitle

TextObject TaleWorlds.CampaignSystem.Kingdom.EncyclopediaRulerTitle
get

◆ EncyclopediaLink

string TaleWorlds.CampaignSystem.Kingdom.EncyclopediaLink
get

◆ EncyclopediaLinkWithName

TextObject TaleWorlds.CampaignSystem.Kingdom.EncyclopediaLinkWithName
get

◆ UnresolvedDecisions

MBReadOnlyList<KingdomDecision> TaleWorlds.CampaignSystem.Kingdom.UnresolvedDecisions
get

◆ Culture

CultureObject TaleWorlds.CampaignSystem.Kingdom.Culture
get

◆ InitialHomeSettlement

Settlement TaleWorlds.CampaignSystem.Kingdom.InitialHomeSettlement
get

◆ IsMapFaction

bool TaleWorlds.CampaignSystem.Kingdom.IsMapFaction
get

◆ HasNavalNavigationCapability

bool TaleWorlds.CampaignSystem.Kingdom.HasNavalNavigationCapability
get

◆ Color

uint TaleWorlds.CampaignSystem.Kingdom.Color
get

◆ Color2

uint TaleWorlds.CampaignSystem.Kingdom.Color2
get

◆ PrimaryBannerColor

uint TaleWorlds.CampaignSystem.Kingdom.PrimaryBannerColor
get

◆ SecondaryBannerColor

uint TaleWorlds.CampaignSystem.Kingdom.SecondaryBannerColor
get

◆ MainHeroCrimeRating

float TaleWorlds.CampaignSystem.Kingdom.MainHeroCrimeRating
getset

◆ FactionsAtWarWith

MBReadOnlyList<IFaction> TaleWorlds.CampaignSystem.Kingdom.FactionsAtWarWith
get

◆ AlliedKingdoms

MBReadOnlyList<Kingdom> TaleWorlds.CampaignSystem.Kingdom.AlliedKingdoms
get

◆ Fiefs

MBReadOnlyList<Town> TaleWorlds.CampaignSystem.Kingdom.Fiefs
get

◆ Villages

MBReadOnlyList<Village> TaleWorlds.CampaignSystem.Kingdom.Villages
get

◆ Settlements

MBReadOnlyList<Settlement> TaleWorlds.CampaignSystem.Kingdom.Settlements
get

◆ Heroes

MBReadOnlyList<Hero> TaleWorlds.CampaignSystem.Kingdom.Heroes
get

◆ AliveLords

MBReadOnlyList<Hero> TaleWorlds.CampaignSystem.Kingdom.AliveLords
get

◆ DeadLords

MBReadOnlyList<Hero> TaleWorlds.CampaignSystem.Kingdom.DeadLords
get

◆ WarPartyComponents

MBReadOnlyList<WarPartyComponent> TaleWorlds.CampaignSystem.Kingdom.WarPartyComponents
get

◆ DailyCrimeRatingChange

float TaleWorlds.CampaignSystem.Kingdom.DailyCrimeRatingChange
get

◆ DailyCrimeRatingChangeExplained

ExplainedNumber TaleWorlds.CampaignSystem.Kingdom.DailyCrimeRatingChangeExplained
get

◆ BasicTroop

CharacterObject TaleWorlds.CampaignSystem.Kingdom.BasicTroop
get

◆ Leader

Hero TaleWorlds.CampaignSystem.Kingdom.Leader
get

◆ Banner

Banner TaleWorlds.CampaignSystem.Kingdom.Banner
getset

◆ IsBanditFaction

bool TaleWorlds.CampaignSystem.Kingdom.IsBanditFaction
get

◆ IsMinorFaction

bool TaleWorlds.CampaignSystem.Kingdom.IsMinorFaction
get

◆ IsRebelClan

bool TaleWorlds.CampaignSystem.Kingdom.IsRebelClan
get

◆ IsClan

bool TaleWorlds.CampaignSystem.Kingdom.IsClan
get

◆ IsOutlaw

bool TaleWorlds.CampaignSystem.Kingdom.IsOutlaw
get

◆ Clans

MBReadOnlyList<Clan> TaleWorlds.CampaignSystem.Kingdom.Clans
get

◆ RulingClan

Clan TaleWorlds.CampaignSystem.Kingdom.RulingClan
getset

◆ LastArmyCreationDay

int TaleWorlds.CampaignSystem.Kingdom.LastArmyCreationDay
get

◆ Armies

MBReadOnlyList<Army> TaleWorlds.CampaignSystem.Kingdom.Armies
get

◆ CurrentTotalStrength

float TaleWorlds.CampaignSystem.Kingdom.CurrentTotalStrength
get

◆ FactionMidSettlement

Settlement TaleWorlds.CampaignSystem.Kingdom.FactionMidSettlement
get

◆ DistanceToClosestNonAllyFortification

float TaleWorlds.CampaignSystem.Kingdom.DistanceToClosestNonAllyFortification
get

◆ ActivePolicies

IList<PolicyObject> TaleWorlds.CampaignSystem.Kingdom.ActivePolicies
get

◆ All

MBReadOnlyList<Kingdom> TaleWorlds.CampaignSystem.Kingdom.All
staticget

◆ LastKingdomDecisionConclusionDate

CampaignTime TaleWorlds.CampaignSystem.Kingdom.LastKingdomDecisionConclusionDate
get

◆ IsEliminated

bool TaleWorlds.CampaignSystem.Kingdom.IsEliminated
get

◆ LastMercenaryOfferTime

CampaignTime TaleWorlds.CampaignSystem.Kingdom.LastMercenaryOfferTime
getset

◆ MapFaction

IFaction TaleWorlds.CampaignSystem.Kingdom.MapFaction
get

◆ NotAttackableByPlayerUntilTime

CampaignTime TaleWorlds.CampaignSystem.Kingdom.NotAttackableByPlayerUntilTime
getset

◆ Aggressiveness

float TaleWorlds.CampaignSystem.Kingdom.Aggressiveness
get

◆ AllParties

IEnumerable<MobileParty> TaleWorlds.CampaignSystem.Kingdom.AllParties
get

◆ MercenaryWallet

int TaleWorlds.CampaignSystem.Kingdom.MercenaryWallet
get

◆ TributeWallet

int TaleWorlds.CampaignSystem.Kingdom.TributeWallet
getset

◆ KingdomBudgetWallet

int TaleWorlds.CampaignSystem.Kingdom.KingdomBudgetWallet
getset

◆ CallToWarWallet

int TaleWorlds.CampaignSystem.Kingdom.CallToWarWallet
getset