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

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

Public Member Functions

override string ToString ()
 
 Kingdom ()
 
void InitializeKingdom (TextObject name, TextObject informalName, CultureObject culture, Banner banner, uint kingdomColor1, uint kingdomColor2, Settlement initialHomeland, TextObject encyclopediaText, TextObject encyclopediaTitle, TextObject encyclopediaRulerTitle)
 
void ChangeKingdomName (TextObject name, TextObject informalName)
 
void OnNewGameCreated (CampaignGameStarter starter)
 
bool IsAtWarWith (IFaction other)
 
void ConsiderSiegesAndMapEvents (IFaction factionToConsiderAgainst)
 
StanceLink GetStanceWith (IFaction other)
 
void CreateArmy (Hero armyLeader, Settlement targetSettlement, Army.ArmyTypes selectedArmyType)
 
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 fief)
 
void OnFiefRemoved (Town fief)
 
void OnHeroAdded (Hero hero)
 
void OnHeroRemoved (Hero hero)
 
void OnWarPartyAdded (WarPartyComponent warPartyComponent)
 
void OnWarPartyRemoved (WarPartyComponent warPartyComponent)
 
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 ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 
bool IsAtWarWith (IFaction other)
 
StanceLink GetStanceWith (IFaction other)
 
void ConsiderSiegesAndMapEvents (IFaction factionToConsiderAgainst)
 

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 ()
 
virtual void AfterLoad ()
 

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 InitialHomeLand [get]
 
Vec2 InitialPosition [get]
 Point to spawn around if no settlement remained.
 
bool IsMapFaction [get]
 
uint LabelColor [get]
 
uint Color [get]
 
uint Color2 [get]
 
uint AlternativeColor [get]
 
uint AlternativeColor2 [get]
 
uint PrimaryBannerColor [get]
 
uint SecondaryBannerColor [get]
 
float MainHeroCrimeRating [get, set]
 
IEnumerable< StanceLinkStances [get]
 
MBReadOnlyList< TownFiefs [get]
 
MBReadOnlyList< VillageVillages [get]
 
MBReadOnlyList< SettlementSettlements [get]
 
MBReadOnlyList< HeroHeroes [get]
 
MBReadOnlyList< HeroLords [get]
 
MBReadOnlyList< WarPartyComponentWarPartyComponents [get]
 
float DailyCrimeRatingChange [get]
 
ExplainedNumber DailyCrimeRatingChangeExplained [get]
 
CharacterObject BasicTroop [get]
 
Hero Leader [get]
 
Banner Banner [get]
 
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 TotalStrength [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]
 
Settlement FactionMidSettlement [get]
 
int MercenaryWallet [get]
 
int TributeWallet [get, set]
 Gold for spending on tributes. Can be negative which means tribute debt.

 
int KingdomBudgetWallet [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
TextObject Name [get]
 
string StringId [get]
 
MBGUID Id [get]
 
TextObject InformalName [get]
 
string EncyclopediaLink [get]
 
TextObject EncyclopediaLinkWithName [get]
 
TextObject EncyclopediaText [get]
 
CultureObject Culture [get]
 
Vec2 InitialPosition [get]
 Point to spawn around if no settlement remained.
 
uint LabelColor [get]
 
uint Color [get]
 
uint Color2 [get]
 
uint AlternativeColor [get]
 
uint AlternativeColor2 [get]
 
CharacterObject BasicTroop [get]
 
Hero Leader [get]
 
Banner Banner [get]
 
MBReadOnlyList< SettlementSettlements [get]
 
MBReadOnlyList< TownFiefs [get]
 
MBReadOnlyList< HeroLords [get]
 
MBReadOnlyList< HeroHeroes [get]
 
MBReadOnlyList< WarPartyComponentWarPartyComponents [get]
 
bool IsBanditFaction [get]
 
bool IsMinorFaction [get]
 
bool IsKingdomFaction [get]
 
bool IsRebelClan [get]
 
bool IsClan [get]
 
bool IsOutlaw [get]
 
bool IsMapFaction [get]
 
IFaction MapFaction [get]
 
float TotalStrength [get]
 
Settlement FactionMidSettlement [get]
 
float DistanceToClosestNonAllyFortification [get]
 
IEnumerable< StanceLinkStances [get]
 
int TributeWallet [get, set]
 Gold for spending on tributes. Can be negative which means tribute debt.

 
float MainHeroCrimeRating [get, set]
 
float DailyCrimeRatingChange [get]
 
float Aggressiveness [get]
 
bool IsEliminated [get]
 
ExplainedNumber DailyCrimeRatingChangeExplained [get]
 
CampaignTime NotAttackableByPlayerUntilTime [get, set]
 

Constructor & Destructor Documentation

◆ Kingdom()

TaleWorlds.CampaignSystem.Kingdom.Kingdom ( )

Member Function Documentation

◆ ToString()

override string TaleWorlds.CampaignSystem.Kingdom.ToString ( )

◆ 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  initialHomeland,
TextObject  encyclopediaText,
TextObject  encyclopediaTitle,
TextObject  encyclopediaRulerTitle 
)

◆ ChangeKingdomName()

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

◆ OnNewGameCreated()

void TaleWorlds.CampaignSystem.Kingdom.OnNewGameCreated ( CampaignGameStarter  starter)

◆ AfterLoad()

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

◆ IsAtWarWith()

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

◆ ConsiderSiegesAndMapEvents()

void TaleWorlds.CampaignSystem.Kingdom.ConsiderSiegesAndMapEvents ( IFaction  factionToConsiderAgainst)

◆ GetStanceWith()

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

◆ CreateArmy()

void TaleWorlds.CampaignSystem.Kingdom.CreateArmy ( Hero  armyLeader,
Settlement  targetSettlement,
Army::ArmyTypes  selectedArmyType 
)

◆ 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  fief)

◆ OnFiefRemoved()

void TaleWorlds.CampaignSystem.Kingdom.OnFiefRemoved ( Town  fief)

◆ 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)

◆ 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

◆ InitialHomeLand

Settlement TaleWorlds.CampaignSystem.Kingdom.InitialHomeLand
get

◆ InitialPosition

Vec2 TaleWorlds.CampaignSystem.Kingdom.InitialPosition
get

◆ IsMapFaction

bool TaleWorlds.CampaignSystem.Kingdom.IsMapFaction
get

◆ LabelColor

uint TaleWorlds.CampaignSystem.Kingdom.LabelColor
get

◆ Color

uint TaleWorlds.CampaignSystem.Kingdom.Color
get

◆ Color2

uint TaleWorlds.CampaignSystem.Kingdom.Color2
get

◆ AlternativeColor

uint TaleWorlds.CampaignSystem.Kingdom.AlternativeColor
get

◆ AlternativeColor2

uint TaleWorlds.CampaignSystem.Kingdom.AlternativeColor2
get

◆ PrimaryBannerColor

uint TaleWorlds.CampaignSystem.Kingdom.PrimaryBannerColor
get

◆ SecondaryBannerColor

uint TaleWorlds.CampaignSystem.Kingdom.SecondaryBannerColor
get

◆ MainHeroCrimeRating

float TaleWorlds.CampaignSystem.Kingdom.MainHeroCrimeRating
getset

◆ Stances

IEnumerable<StanceLink> TaleWorlds.CampaignSystem.Kingdom.Stances
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

◆ Lords

MBReadOnlyList<Hero> TaleWorlds.CampaignSystem.Kingdom.Lords
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
get

◆ 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

◆ TotalStrength

float TaleWorlds.CampaignSystem.Kingdom.TotalStrength
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

◆ FactionMidSettlement

Settlement TaleWorlds.CampaignSystem.Kingdom.FactionMidSettlement
get

◆ MercenaryWallet

int TaleWorlds.CampaignSystem.Kingdom.MercenaryWallet
get

◆ TributeWallet

int TaleWorlds.CampaignSystem.Kingdom.TributeWallet
getset

◆ KingdomBudgetWallet

int TaleWorlds.CampaignSystem.Kingdom.KingdomBudgetWallet
getset