Table of Contents

Class CharacterObject

Namespace
TaleWorlds.CampaignSystem
Assembly
TaleWorlds.CampaignSystem.dll
public sealed class CharacterObject : BasicCharacterObject, ICharacterData
Inheritance
CharacterObject
Implements
Inherited Members

Constructors

CharacterObject()

public CharacterObject()

Properties

Age

public override float Age { get; }

Property Value

float

All

public static MBReadOnlyList<CharacterObject> All { get; }

Property Value

MBReadOnlyList<CharacterObject>

AllEquipments

public override MBReadOnlyList<Equipment> AllEquipments { get; }

Property Value

MBReadOnlyList<Equipment>

BattleEquipments

public IEnumerable<Equipment> BattleEquipments { get; }

Property Value

IEnumerable<Equipment>

BeardTags

public override string BeardTags { get; }

Property Value

string

CivilianEquipments

public IEnumerable<Equipment> CivilianEquipments { get; }

Property Value

IEnumerable<Equipment>

ConformityNeededToRecruitPrisoner

public int ConformityNeededToRecruitPrisoner { get; }

Property Value

int

ConversationCharacters

public static IEnumerable<CharacterObject> ConversationCharacters { get; }

Property Value

IEnumerable<CharacterObject>

Culture

public CultureObject Culture { get; set; }

Property Value

CultureObject
public string EncyclopediaLink { get; }

Property Value

string

EncyclopediaLinkWithName

public TextObject EncyclopediaLinkWithName { get; }

Property Value

TextObject

Equipment

public override Equipment Equipment { get; }

Property Value

Equipment

FirstBattleEquipment

public Equipment FirstBattleEquipment { get; }

Property Value

Equipment

FirstCivilianEquipment

public Equipment FirstCivilianEquipment { get; }

Property Value

Equipment

HairTags

public override string HairTags { get; }

Property Value

string

HeroObject

public Hero HeroObject { get; }

Property Value

Hero

HiddenInEncylopedia

public bool HiddenInEncylopedia { get; set; }

Property Value

bool

HitPoints

public override int HitPoints { get; }

Property Value

int

IsBasicTroop

public bool IsBasicTroop { get; set; }

Property Value

bool

IsChildTemplate

public bool IsChildTemplate { get; }

Property Value

bool

IsFemale

public override bool IsFemale { get; }

Property Value

bool

IsHero

public override bool IsHero { get; }

Property Value

bool

IsMounted

public override bool IsMounted { get; }

Property Value

bool

IsNotTransferableInHideouts

public bool IsNotTransferableInHideouts { get; }

Property Value

bool

IsNotTransferableInPartyScreen

public bool IsNotTransferableInPartyScreen { get; }

Property Value

bool

IsOriginalCharacter

public bool IsOriginalCharacter { get; }

Property Value

bool

IsPlayerCharacter

public override bool IsPlayerCharacter { get; }

Property Value

bool

IsRanged

public override bool IsRanged { get; }

Property Value

bool

IsRegular

public bool IsRegular { get; }

Property Value

bool

IsTemplate

public bool IsTemplate { get; }

Property Value

bool

Level

public override int Level { get; }

Property Value

int

MaxHitPointsExplanation

public ExplainedNumber MaxHitPointsExplanation { get; }

Property Value

ExplainedNumber

Name

public override TextObject Name { get; }

Property Value

TextObject

Occupation

public Occupation Occupation { get; }

Property Value

Occupation

OneToOneConversationCharacter

public static CharacterObject OneToOneConversationCharacter { get; }

Property Value

CharacterObject

OriginalCharacter

public CharacterObject OriginalCharacter { get; }

Property Value

CharacterObject

PlayerCharacter

public static CharacterObject PlayerCharacter { get; }

Property Value

CharacterObject

RandomBattleEquipment

public Equipment RandomBattleEquipment { get; }

Property Value

Equipment

RandomCivilianEquipment

public Equipment RandomCivilianEquipment { get; }

Property Value

Equipment

TattooTags

public override string TattooTags { get; }

Property Value

string

Tier

public int Tier { get; }

Property Value

int

TroopWage

public int TroopWage { get; }

Property Value

int

UpgradeRequiresItemFromCategory

public ItemCategory UpgradeRequiresItemFromCategory { get; }

Property Value

ItemCategory

UpgradeTargets

public CharacterObject[] UpgradeTargets { get; }

Property Value

CharacterObject[]

Methods

AfterRegister()

public override void AfterRegister()

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

ClearAttributes()

public void ClearAttributes()

CreateFrom(CharacterObject)

public static CharacterObject CreateFrom(CharacterObject character)

Parameters

character CharacterObject

Returns

CharacterObject

Deserialize(MBObjectManager, XmlNode)

public override void Deserialize(MBObjectManager objectManager, XmlNode node)

Parameters

objectManager MBObjectManager
node XmlNode

Find(string)

public static CharacterObject Find(string idString)

Parameters

idString string

Returns

CharacterObject

FindAll(Predicate<CharacterObject>)

public static IEnumerable<CharacterObject> FindAll(Predicate<CharacterObject> predicate)

Parameters

predicate Predicate<CharacterObject>

Returns

IEnumerable<CharacterObject>

FindFirst(Predicate<CharacterObject>)

public static CharacterObject FindFirst(Predicate<CharacterObject> predicate)

Parameters

predicate Predicate<CharacterObject>

Returns

CharacterObject

GetArmArmorSum(bool)

public float GetArmArmorSum(bool civilianEquipment = false)

Parameters

civilianEquipment bool

Returns

float

GetBattlePower()

public override float GetBattlePower()

Returns

float

GetBodyArmorSum(bool)

public float GetBodyArmorSum(bool civilianEquipment = false)

Parameters

civilianEquipment bool

Returns

float

GetBodyProperties(Equipment, int)

public override BodyProperties GetBodyProperties(Equipment equipment, int seed = -1)

Parameters

equipment Equipment
seed int

Returns

BodyProperties

GetBodyPropertiesMax()

public override BodyProperties GetBodyPropertiesMax()

Returns

BodyProperties

GetBodyPropertiesMin(bool)

public override BodyProperties GetBodyPropertiesMin(bool returnBaseValue = false)

Parameters

returnBaseValue bool

Returns

BodyProperties

GetDefaultOccupation()

public Occupation GetDefaultOccupation()

Returns

Occupation

GetFormationClass()

public override FormationClass GetFormationClass()

Returns

FormationClass

GetHeadArmorSum(bool)

public float GetHeadArmorSum(bool civilianEquipment = false)

Parameters

civilianEquipment bool

Returns

float

GetHorseArmorSum(bool)

public float GetHorseArmorSum(bool civilianEquipment = false)

Parameters

civilianEquipment bool

Returns

float

GetLegArmorSum(bool)

public float GetLegArmorSum(bool civilianEquipment = false)

Parameters

civilianEquipment bool

Returns

float

GetMoraleResistance()

public override float GetMoraleResistance()

Returns

float

GetMountKeySeed()

public override int GetMountKeySeed()

Returns

int

GetPerkValue(PerkObject)

public bool GetPerkValue(PerkObject perk)

Parameters

perk PerkObject

Returns

bool

GetPersona()

public TraitObject GetPersona()

Returns

TraitObject

GetPower()

public override float GetPower()

Returns

float

GetSimulationAttackPower(out float, out float, Equipment)

public void GetSimulationAttackPower(out float attackPoints, out float defencePoints, Equipment equipment = null)

Parameters

attackPoints float
defencePoints float
equipment Equipment

GetSkillValue(SkillObject)

public override int GetSkillValue(SkillObject skill)

Parameters

skill SkillObject

Returns

int

GetTotalArmorSum(bool)

public float GetTotalArmorSum(bool civilianEquipment = false)

Parameters

civilianEquipment bool

Returns

float

GetTraitLevel(TraitObject)

public int GetTraitLevel(TraitObject trait)

Parameters

trait TraitObject

Returns

int

GetUpgradeGoldCost(PartyBase, int)

public int GetUpgradeGoldCost(PartyBase party, int index)

Parameters

party PartyBase
index int

Returns

int

GetUpgradeXpCost(PartyBase, int)

public int GetUpgradeXpCost(PartyBase party, int index)

Parameters

party PartyBase
index int

Returns

int

HasThrowingWeapon()

public bool HasThrowingWeapon()

Returns

bool

InitializeHeroCharacterOnAfterLoad()

public void InitializeHeroCharacterOnAfterLoad()

MaxHitPoints()

public override int MaxHitPoints()

Returns

int

SetTransferableInHideouts(bool)

public void SetTransferableInHideouts(bool isTransferable)

Parameters

isTransferable bool

SetTransferableInPartyScreen(bool)

public void SetTransferableInPartyScreen(bool isTransferable)

Parameters

isTransferable bool

ToString()

public override string ToString()

Returns

string

UpdatePlayerCharacterBodyProperties(BodyProperties, int, bool)

public override void UpdatePlayerCharacterBodyProperties(BodyProperties properties, int race, bool isFemale)

Parameters

properties BodyProperties
race int
isFemale bool

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