M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Core.BasicCharacterObject Class Reference

Inherits TaleWorlds.ObjectSystem.MBObjectBase.

Inherited by TaleWorlds.CampaignSystem.CharacterObject.

Public Member Functions

override TextObject GetName ()
 This function is not same with get property of Name. It overrides the function in MBObjectBase class. It is used in encyclopedia etc. More...
 
override string ToString ()
 
void InitializeEquipmentsOnLoad (BasicCharacterObject character)
 
Equipment GetFirstEquipment (bool civilianSet)
 
virtual BodyProperties GetBodyPropertiesMin (bool returnBaseValue=false)
 
virtual BodyProperties GetBodyPropertiesMax ()
 
virtual BodyProperties GetBodyProperties (Equipment equipment, int seed=-1)
 
virtual void UpdatePlayerCharacterBodyProperties (BodyProperties properties, int race, bool isFemale)
 
 BasicCharacterObject ()
 
int GetDefaultFaceSeed (int rank)
 
float GetStepSize ()
 
bool HasMount ()
 
virtual int MaxHitPoints ()
 
virtual float GetPower ()
 
virtual float GetBattlePower ()
 
virtual float GetMoraleResistance ()
 
virtual int GetMountKeySeed ()
 
virtual int GetSkillValue (SkillObject skill)
 
override void Deserialize (MBObjectManager objectManager, XmlNode node)
 
virtual FormationClass GetFormationClass ()
 
- 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 ()
 

Protected Member Functions

void InitializeHeroBasicCharacterOnAfterLoad (BasicCharacterObject originCharacter)
 
int FetchDefaultFormationGroup (string innerText)
 
- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 

Protected Attributes

TextObject _basicName
 
MBCharacterSkills CharacterSkills
 

Properties

virtual TextObject Name [get]
 
virtual MBBodyProperty BodyPropertyRange [get, protected set]
 
int DefaultFormationGroup [get, set]
 
FormationClass DefaultFormationClass [get, protected set]
 
FormationPositionPreference FormationPositionPreference [get, protected set]
 
bool IsInfantry [get]
 
virtual bool IsMounted [get]
 
virtual bool IsRanged [get]
 
int Race [get, set]
 
virtual bool IsFemale [get, set]
 
bool FaceMeshCache [get]
 
virtual MBReadOnlyList< EquipmentAllEquipments [get]
 
virtual Equipment Equipment [get]
 
bool IsObsolete [get]
 
virtual int Level [get, set]
 Gets or sets the Level More...
 
BasicCultureObject Culture [get, set]
 Gets or sets the culture of this character More...
 
virtual bool IsPlayerCharacter [get]
 
virtual float Age [get, set]
 
virtual int HitPoints [get]
 
float FaceDirtAmount [get, set]
 
virtual string HairTags = "" [get, set]
 
virtual string BeardTags = "" [get, set]
 
virtual string TattooTags = "" [get, set]
 
virtual bool IsHero [get]
 
bool IsSoldier [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Constructor & Destructor Documentation

◆ BasicCharacterObject()

TaleWorlds.Core.BasicCharacterObject.BasicCharacterObject ( )

Member Function Documentation

◆ GetName()

override TextObject TaleWorlds.Core.BasicCharacterObject.GetName ( )
virtual

◆ ToString()

override string TaleWorlds.Core.BasicCharacterObject.ToString ( )

◆ InitializeEquipmentsOnLoad()

void TaleWorlds.Core.BasicCharacterObject.InitializeEquipmentsOnLoad ( BasicCharacterObject  character)

◆ GetFirstEquipment()

Equipment TaleWorlds.Core.BasicCharacterObject.GetFirstEquipment ( bool  civilianSet)

◆ GetBodyPropertiesMin()

virtual BodyProperties TaleWorlds.Core.BasicCharacterObject.GetBodyPropertiesMin ( bool  returnBaseValue = false)
virtual

◆ GetBodyPropertiesMax()

virtual BodyProperties TaleWorlds.Core.BasicCharacterObject.GetBodyPropertiesMax ( )
virtual

◆ GetBodyProperties()

virtual BodyProperties TaleWorlds.Core.BasicCharacterObject.GetBodyProperties ( Equipment  equipment,
int  seed = -1 
)
virtual

◆ UpdatePlayerCharacterBodyProperties()

virtual void TaleWorlds.Core.BasicCharacterObject.UpdatePlayerCharacterBodyProperties ( BodyProperties  properties,
int  race,
bool  isFemale 
)
virtual

◆ GetDefaultFaceSeed()

int TaleWorlds.Core.BasicCharacterObject.GetDefaultFaceSeed ( int  rank)

◆ GetStepSize()

float TaleWorlds.Core.BasicCharacterObject.GetStepSize ( )

◆ HasMount()

bool TaleWorlds.Core.BasicCharacterObject.HasMount ( )

◆ MaxHitPoints()

virtual int TaleWorlds.Core.BasicCharacterObject.MaxHitPoints ( )
virtual

◆ GetPower()

virtual float TaleWorlds.Core.BasicCharacterObject.GetPower ( )
virtual

◆ GetBattlePower()

virtual float TaleWorlds.Core.BasicCharacterObject.GetBattlePower ( )
virtual

◆ GetMoraleResistance()

virtual float TaleWorlds.Core.BasicCharacterObject.GetMoraleResistance ( )
virtual

◆ GetMountKeySeed()

virtual int TaleWorlds.Core.BasicCharacterObject.GetMountKeySeed ( )
virtual

◆ GetSkillValue()

virtual int TaleWorlds.Core.BasicCharacterObject.GetSkillValue ( SkillObject  skill)
virtual

◆ InitializeHeroBasicCharacterOnAfterLoad()

void TaleWorlds.Core.BasicCharacterObject.InitializeHeroBasicCharacterOnAfterLoad ( BasicCharacterObject  originCharacter)
protected

◆ Deserialize()

override void TaleWorlds.Core.BasicCharacterObject.Deserialize ( MBObjectManager  objectManager,
XmlNode  node 
)
virtual

◆ FetchDefaultFormationGroup()

int TaleWorlds.Core.BasicCharacterObject.FetchDefaultFormationGroup ( string  innerText)
protected

◆ GetFormationClass()

virtual FormationClass TaleWorlds.Core.BasicCharacterObject.GetFormationClass ( )
virtual

Member Data Documentation

◆ _basicName

TextObject TaleWorlds.Core.BasicCharacterObject._basicName
protected

◆ CharacterSkills

MBCharacterSkills TaleWorlds.Core.BasicCharacterObject.CharacterSkills
protected

Property Documentation

◆ Name

virtual TextObject TaleWorlds.Core.BasicCharacterObject.Name
get

◆ BodyPropertyRange

virtual MBBodyProperty TaleWorlds.Core.BasicCharacterObject.BodyPropertyRange
getprotected set

◆ DefaultFormationGroup

int TaleWorlds.Core.BasicCharacterObject.DefaultFormationGroup
getset

◆ DefaultFormationClass

FormationClass TaleWorlds.Core.BasicCharacterObject.DefaultFormationClass
getprotected set

◆ FormationPositionPreference

FormationPositionPreference TaleWorlds.Core.BasicCharacterObject.FormationPositionPreference
getprotected set

◆ IsInfantry

bool TaleWorlds.Core.BasicCharacterObject.IsInfantry
get

◆ IsMounted

virtual bool TaleWorlds.Core.BasicCharacterObject.IsMounted
get

◆ IsRanged

virtual bool TaleWorlds.Core.BasicCharacterObject.IsRanged
get

◆ Race

int TaleWorlds.Core.BasicCharacterObject.Race
getset

◆ IsFemale

virtual bool TaleWorlds.Core.BasicCharacterObject.IsFemale
getset

◆ FaceMeshCache

bool TaleWorlds.Core.BasicCharacterObject.FaceMeshCache
get

◆ AllEquipments

virtual MBReadOnlyList<Equipment> TaleWorlds.Core.BasicCharacterObject.AllEquipments
get

◆ Equipment

virtual Equipment TaleWorlds.Core.BasicCharacterObject.Equipment
get

◆ IsObsolete

bool TaleWorlds.Core.BasicCharacterObject.IsObsolete
get

◆ Level

virtual int TaleWorlds.Core.BasicCharacterObject.Level
getset

◆ Culture

BasicCultureObject TaleWorlds.Core.BasicCharacterObject.Culture
getset

◆ IsPlayerCharacter

virtual bool TaleWorlds.Core.BasicCharacterObject.IsPlayerCharacter
get

◆ Age

virtual float TaleWorlds.Core.BasicCharacterObject.Age
getset

◆ HitPoints

virtual int TaleWorlds.Core.BasicCharacterObject.HitPoints
get

◆ FaceDirtAmount

float TaleWorlds.Core.BasicCharacterObject.FaceDirtAmount
getset

◆ HairTags

virtual string TaleWorlds.Core.BasicCharacterObject.HairTags = ""
getset

◆ BeardTags

virtual string TaleWorlds.Core.BasicCharacterObject.BeardTags = ""
getset

◆ TattooTags

virtual string TaleWorlds.Core.BasicCharacterObject.TattooTags = ""
getset

◆ IsHero

virtual bool TaleWorlds.Core.BasicCharacterObject.IsHero
get

◆ IsSoldier

bool TaleWorlds.Core.BasicCharacterObject.IsSoldier
get