|
OpenEnroth 3d489c4
|
#include <Character.h>
Public Member Functions | |
| Character () | |
| void | Zero () |
| bool | matchesAttackPreference (MonsterAttackPreference preference) const |
| void | SetVariable (EvtVariable var, signed int a3) |
| void | AddVariable (EvtVariable var, signed int val) |
| void | SubtractVariable (EvtVariable VarNum, signed int pValue) |
| bool | CompareVariable (EvtVariable VarNum, signed int pValue) |
| void | useItem (int targetCharacter, bool isPortraitClick) |
| int | GetBaseMight () const |
| int | GetBaseIntelligence () const |
| int | GetBasePersonality () const |
| int | GetBaseEndurance () const |
| int | GetBaseAccuracy () const |
| int | GetBaseSpeed () const |
| int | GetBaseLuck () const |
| int | GetBaseStat (Attribute stat) const |
| int | GetBaseLevel () const |
| int | GetActualLevel () const |
| int | GetActualMight () const |
| int | GetActualIntelligence () const |
| int | GetActualPersonality () const |
| int | GetActualEndurance () const |
| int | GetActualAccuracy () const |
| int | GetActualSpeed () const |
| int | GetActualLuck () const |
| int | GetActualStat (Attribute stat) const |
| int | GetActualAttack (bool onlyMainHandDmg) const |
| int | GetMeleeDamageMinimal () const |
| int | GetMeleeDamageMaximal () const |
| int | CalculateMeleeDamageTo (bool ignoreSkillBonus, bool ignoreOffhand, MonsterId uTargetActorID) |
| int | GetRangedAttack () |
| int | GetRangedDamageMin () |
| int | GetRangedDamageMax () |
| int | CalculateRangedDamageTo (MonsterId uMonsterInfoID) |
| std::string | GetMeleeDamageString () |
| std::string | GetRangedDamageString () |
| bool | CanTrainToNextLevel () |
| Color | GetExperienceDisplayColor () |
| int | CalculateIncommingDamage (DamageType dmg_type, int amount) |
| bool | IsUnarmed () const |
| bool | wearsEnchantedItem (ItemEnchantment enchantment) const |
| bool | wearsItem (ItemId itemId) const |
| int | StealFromShop (Item *itemToSteal, int extraStealDifficulty, int reputation, int extraStealFine, int *fineIfFailed) |
| StealResult | StealFromActor (int uActorID, int _steal_perm, int reputation) |
| void | Heal (int amount) |
| int | receiveDamage (signed int amount, DamageType dmg_type) |
| int | ReceiveSpecialAttackEffect (MonsterSpecialAttack attType, Actor *pActor) |
| Duration | GetAttackRecoveryTime (bool attackUsesBow) const |
| int | GetHealth () const |
| int | GetMaxHealth () const |
| int | GetMana () const |
| int | GetMaxMana () const |
| int | GetBaseAC () const |
| int | GetActualAC () const |
| int | GetBaseAge () const |
| int | GetActualAge () const |
| int | GetBaseResistance (Attribute a2) const |
| int | GetActualResistance (Attribute resistance) const |
| void | SetRecoveryTime (Duration sRecoveryTime) |
| void | RandomizeName () |
| Condition | GetMajorConditionIdx () const |
| int | GetParameterBonus (int character_parameter) const |
| int | GetSpecialItemBonus (ItemEnchantment enchantment) const |
| int | GetItemsBonus (Attribute attr, bool getOnlyMainHandDmg=false) const |
| int | GetMagicalBonus (Attribute a2) const |
| int | actualSkillLevel (Skill skill) const |
| CombinedSkillValue | getActualSkillValue (Skill skill) const |
| int | GetSkillBonus (Attribute a2) const |
| Race | GetRace () const |
| std::string | GetRaceName () const |
| Sex | GetSexByVoice () const |
| void | SetInitialStats () |
| void | SetSexByVoice () |
| void | ChangeClass (Class classType) |
| Skill | GetSkillIdxByOrder (signed int order) |
| void | DecreaseAttribute (Attribute eAttribute) |
| void | IncreaseAttribute (Attribute eAttribute) |
| void | resetTempBonuses () |
| Color | GetStatColor (Attribute uStat) const |
| bool | DiscardConditionIfLastsLongerThan (Condition uCondition, Time time) |
| MerchantPhrase | SelectPhrasesTransaction (Item *pItem, HouseType building_type, HouseId houseId, ShopScreen ShopMenuType) |
| int | GetBodybuilding () const |
| int | GetMeditation () const |
| bool | CanIdentify (const Item &item) const |
| bool | CanRepair (const Item &item) const |
| int | GetPerception () const |
| int | GetDisarmTrap () const |
| int | getLearningPercent () const |
| bool | HasSkill (Skill skill) const |
| bool | CanAct () const |
| bool | CanSteal () const |
| bool | CanEquip_RaceAndAlignmentCheck (ItemId uItemID) const |
| void | SetCondition (Condition condition, int blockable) |
| bool | isClass (Class class_type, bool check_honorary=true) const |
| void | playReaction (SpeechId speech, int a3=0) |
| void | playEmotion (PortraitId newPortrait, Duration duration) |
| void | ItemsPotionDmgBreak (int count) |
| int | GetConditionDaysPassed (Condition condition) const |
| bool | NothingOrJustBlastersEquipped () const |
| void | SalesProcess (InventoryEntry entry, HouseId houseId) |
| bool | Recover (Duration dt) |
| bool | CanCastSpell (int uRequiredMana) |
| void | SpendMana (int uRequiredMana) |
| void | PlayAwardSound () |
| bool | hasUnderwaterSuitEquipped () const |
| void | OnInventoryLeftClick () |
| bool | characterHitOrMiss (Actor *pActor, int distancemod, int skillmod) |
| int | GetMultiplierForSkillLevel (Skill uSkillType, int mult1, int mult2, int mult3, int mult4) const |
| int | CalculateMeleeDmgToEnemyWithWeapon (Item *weapon, MonsterId uTargetActorID, bool addOneDice) |
| float | GetArmorRecoveryMultiplierFromSkillLevel (Skill armour_skill_type, float param2, float param3, float param4, float param5) const |
| void | SetSkillReaction () |
| void | PlayAwardSound_Anim () |
| void | PlayAwardSound_Anim_Face (SpeechId speech) |
| void | PlayAwardSound_Anim97 () |
| void | PlayAwardSound_Anim97_Face (SpeechId speech) |
| void | AddSkillByEvent (Skill, uint16_t addSkillValue) |
| void | PlayAwardSound_AnimSubtract () |
| void | PlayAwardSound_AnimSubtract_Face (SpeechId speech) |
| void | SubtractSkillByEvent (Skill skill, uint16_t subSkillValue) |
| bool | IsWeak () const |
| bool | IsDead () const |
| bool | IsEradicated () const |
| bool | IsZombie () const |
| bool | IsCursed () const |
| bool | IsPetrified () const |
| bool | IsUnconcious () const |
| bool | IsAsleep () const |
| bool | IsParalyzed () const |
| bool | IsDrunk () const |
| void | SetCondWeakWithBlockCheck (int blockable) |
| void | SetCondInsaneWithBlockCheck (int blockable) |
| void | SetCondDeadWithBlockCheck (int blockable) |
| void | SetCondUnconsciousWithBlockCheck (int blockable) |
| bool | IsRaceHuman () const |
| bool | IsRaceDwarf () const |
| bool | IsRaceElf () const |
| bool | IsRaceGoblin () const |
| bool | IsMale () const |
| bool | IsFemale () const |
| int | getCharacterIndex () |
| void | cleanupBeacons () |
| bool | setBeacon (int index, Duration duration) |
| CombinedSkillValue | getSkillValue (Skill skill) const |
| void | setSkillValue (Skill skill, const CombinedSkillValue &value) |
| void | setXP (int xp) |
| void | tickRegeneration (int tick5, const RegenData &rData, bool stacking) |
Static Public Member Functions | |
| static void | _42ECB5_CharacterAttacksActor () |
| static void | _42FA66_do_explosive_impact (Vec3f pos, int a4, int16_t a5, int actchar) |
| Character::Character | ( | ) |
|
static |
|
static |
| int Character::actualSkillLevel | ( | Skill | skill | ) | const |
| void Character::AddSkillByEvent | ( | Skill | skill, |
| uint16_t | addSkillValue | ||
| ) |
| void Character::AddVariable | ( | EvtVariable | var, |
| signed int | val | ||
| ) |
| int Character::CalculateIncommingDamage | ( | DamageType | dmg_type, |
| int | amount | ||
| ) |
| int Character::CalculateMeleeDamageTo | ( | bool | ignoreSkillBonus, |
| bool | ignoreOffhand, | ||
| MonsterId | uTargetActorID | ||
| ) |
| int Character::CalculateMeleeDmgToEnemyWithWeapon | ( | Item * | weapon, |
| MonsterId | uTargetActorID, | ||
| bool | addOneDice | ||
| ) |
| int Character::CalculateRangedDamageTo | ( | MonsterId | uMonsterInfoID | ) |
| bool Character::CanAct | ( | ) | const |
| bool Character::CanCastSpell | ( | int | uRequiredMana | ) |
| bool Character::CanEquip_RaceAndAlignmentCheck | ( | ItemId | uItemID | ) | const |
| bool Character::CanIdentify | ( | const Item & | item | ) | const |
| bool Character::CanRepair | ( | const Item & | item | ) | const |
| bool Character::CanSteal | ( | ) | const |
| bool Character::CanTrainToNextLevel | ( | ) |
| void Character::ChangeClass | ( | Class | classType | ) |
| bool Character::characterHitOrMiss | ( | Actor * | pActor, |
| int | distancemod, | ||
| int | skillmod | ||
| ) |
| void Character::cleanupBeacons | ( | ) |
| bool Character::CompareVariable | ( | EvtVariable | VarNum, |
| signed int | pValue | ||
| ) |
| void Character::DecreaseAttribute | ( | Attribute | eAttribute | ) |
| int Character::GetActualAC | ( | ) | const |
| int Character::GetActualAccuracy | ( | ) | const |
| int Character::GetActualAge | ( | ) | const |
| int Character::GetActualAttack | ( | bool | onlyMainHandDmg | ) | const |
| int Character::GetActualEndurance | ( | ) | const |
| int Character::GetActualIntelligence | ( | ) | const |
| int Character::GetActualLevel | ( | ) | const |
| int Character::GetActualLuck | ( | ) | const |
| int Character::GetActualMight | ( | ) | const |
| int Character::GetActualPersonality | ( | ) | const |
| int Character::GetActualResistance | ( | Attribute | resistance | ) | const |
| CombinedSkillValue Character::getActualSkillValue | ( | Skill | skill | ) | const |
| int Character::GetActualSpeed | ( | ) | const |
| int Character::GetActualStat | ( | Attribute | stat | ) | const |
| float Character::GetArmorRecoveryMultiplierFromSkillLevel | ( | Skill | armour_skill_type, |
| float | param2, | ||
| float | param3, | ||
| float | param4, | ||
| float | param5 | ||
| ) | const |
| Duration Character::GetAttackRecoveryTime | ( | bool | attackUsesBow | ) | const |
| int Character::GetBaseAC | ( | ) | const |
| int Character::GetBaseAccuracy | ( | ) | const |
| int Character::GetBaseAge | ( | ) | const |
| int Character::GetBaseEndurance | ( | ) | const |
| int Character::GetBaseIntelligence | ( | ) | const |
| int Character::GetBaseLevel | ( | ) | const |
| int Character::GetBaseLuck | ( | ) | const |
| int Character::GetBaseMight | ( | ) | const |
| int Character::GetBasePersonality | ( | ) | const |
| int Character::GetBaseResistance | ( | Attribute | a2 | ) | const |
| int Character::GetBaseSpeed | ( | ) | const |
| int Character::GetBaseStat | ( | Attribute | stat | ) | const |
| int Character::GetBodybuilding | ( | ) | const |
| int Character::getCharacterIndex | ( | ) |
| int Character::GetConditionDaysPassed | ( | Condition | condition | ) | const |
| int Character::GetDisarmTrap | ( | ) | const |
| Color Character::GetExperienceDisplayColor | ( | ) |
|
inline |
| int Character::GetItemsBonus | ( | Attribute | attr, |
| bool | getOnlyMainHandDmg = false |
||
| ) | const |
| int Character::getLearningPercent | ( | ) | const |
Get percentage bonus for character EXP received.
| int Character::GetMagicalBonus | ( | Attribute | a2 | ) | const |
| Condition Character::GetMajorConditionIdx | ( | ) | const |
|
inline |
| int Character::GetMaxHealth | ( | ) | const |
| int Character::GetMaxMana | ( | ) | const |
| int Character::GetMeditation | ( | ) | const |
| int Character::GetMeleeDamageMaximal | ( | ) | const |
| int Character::GetMeleeDamageMinimal | ( | ) | const |
| std::string Character::GetMeleeDamageString | ( | ) |
| int Character::GetMultiplierForSkillLevel | ( | Skill | uSkillType, |
| int | mult1, | ||
| int | mult2, | ||
| int | mult3, | ||
| int | mult4 | ||
| ) | const |
| int Character::GetParameterBonus | ( | int | character_parameter | ) | const |
| int Character::GetPerception | ( | ) | const |
| enum Race Character::GetRace | ( | ) | const |
| std::string Character::GetRaceName | ( | ) | const |
| int Character::GetRangedAttack | ( | ) |
| int Character::GetRangedDamageMax | ( | ) |
| int Character::GetRangedDamageMin | ( | ) |
| std::string Character::GetRangedDamageString | ( | ) |
| Sex Character::GetSexByVoice | ( | ) | const |
| int Character::GetSkillBonus | ( | Attribute | a2 | ) | const |
| Skill Character::GetSkillIdxByOrder | ( | signed int | order | ) |
| CombinedSkillValue Character::getSkillValue | ( | Skill | skill | ) | const |
| int Character::GetSpecialItemBonus | ( | ItemEnchantment | enchantment | ) | const |
| bool Character::HasSkill | ( | Skill | skill | ) | const |
| bool Character::hasUnderwaterSuitEquipped | ( | ) | const |
| void Character::Heal | ( | int | amount | ) |
| void Character::IncreaseAttribute | ( | Attribute | eAttribute | ) |
| bool Character::IsAsleep | ( | ) | const |
| bool Character::isClass | ( | Class | class_type, |
| bool | check_honorary = true |
||
| ) | const |
| bool Character::IsCursed | ( | ) | const |
| bool Character::IsDead | ( | ) | const |
| bool Character::IsDrunk | ( | ) | const |
| bool Character::IsEradicated | ( | ) | const |
|
inline |
|
inline |
| bool Character::IsParalyzed | ( | ) | const |
| bool Character::IsPetrified | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| bool Character::IsUnarmed | ( | ) | const |
| bool Character::IsUnconcious | ( | ) | const |
| bool Character::IsWeak | ( | ) | const |
| bool Character::IsZombie | ( | ) | const |
| void Character::ItemsPotionDmgBreak | ( | int | count | ) |
| bool Character::matchesAttackPreference | ( | MonsterAttackPreference | preference | ) | const |
| bool Character::NothingOrJustBlastersEquipped | ( | ) | const |
| void Character::OnInventoryLeftClick | ( | ) |
| void Character::PlayAwardSound | ( | ) |
| void Character::PlayAwardSound_Anim | ( | ) |
| void Character::PlayAwardSound_Anim97 | ( | ) |
| void Character::PlayAwardSound_Anim97_Face | ( | SpeechId | speech | ) |
| void Character::PlayAwardSound_Anim_Face | ( | SpeechId | speech | ) |
| void Character::PlayAwardSound_AnimSubtract | ( | ) |
| void Character::PlayAwardSound_AnimSubtract_Face | ( | SpeechId | speech | ) |
| void Character::playEmotion | ( | PortraitId | newPortrait, |
| Duration | duration | ||
| ) |
| void Character::playReaction | ( | SpeechId | speech, |
| int | a3 = 0 |
||
| ) |
| void Character::RandomizeName | ( | ) |
| int Character::receiveDamage | ( | signed int | amount, |
| DamageType | dmg_type | ||
| ) |
| int Character::ReceiveSpecialAttackEffect | ( | MonsterSpecialAttack | attType, |
| Actor * | pActor | ||
| ) |
| bool Character::Recover | ( | Duration | dt | ) |
| void Character::resetTempBonuses | ( | ) |
| void Character::SalesProcess | ( | InventoryEntry | entry, |
| HouseId | houseId | ||
| ) |
| MerchantPhrase Character::SelectPhrasesTransaction | ( | Item * | pItem, |
| HouseType | building_type, | ||
| HouseId | houseId, | ||
| ShopScreen | ShopMenuType | ||
| ) |
| bool Character::setBeacon | ( | int | index, |
| Duration | duration | ||
| ) |
| void Character::SetCondDeadWithBlockCheck | ( | int | blockable | ) |
| void Character::SetCondInsaneWithBlockCheck | ( | int | blockable | ) |
| void Character::SetCondition | ( | Condition | condition, |
| int | blockable | ||
| ) |
| void Character::SetCondUnconsciousWithBlockCheck | ( | int | blockable | ) |
| void Character::SetCondWeakWithBlockCheck | ( | int | blockable | ) |
| void Character::SetInitialStats | ( | ) |
| void Character::SetRecoveryTime | ( | Duration | sRecoveryTime | ) |
| void Character::SetSexByVoice | ( | ) |
| void Character::SetSkillReaction | ( | ) |
| void Character::setSkillValue | ( | Skill | skill, |
| const CombinedSkillValue & | value | ||
| ) |
| void Character::SetVariable | ( | EvtVariable | var, |
| signed int | a3 | ||
| ) |
| void Character::setXP | ( | int | xp | ) |
| void Character::SpendMana | ( | int | uRequiredMana | ) |
| StealResult Character::StealFromActor | ( | int | uActorID, |
| int | _steal_perm, | ||
| int | reputation | ||
| ) |
| int Character::StealFromShop | ( | Item * | itemToSteal, |
| int | extraStealDifficulty, | ||
| int | reputation, | ||
| int | extraStealFine, | ||
| int * | fineIfFailed | ||
| ) |
| void Character::SubtractSkillByEvent | ( | Skill | skill, |
| uint16_t | subSkillValue | ||
| ) |
| void Character::SubtractVariable | ( | EvtVariable | VarNum, |
| signed int | pValue | ||
| ) |
| void Character::tickRegeneration | ( | int | tick5, |
| const RegenData & | rData, | ||
| bool | stacking | ||
| ) |
| void Character::useItem | ( | int | targetCharacter, |
| bool | isPortraitClick | ||
| ) |
Use item on character. This includes potion drinking, spell scroll/books usages and so on.
| targetCharacter | Character that uses the item. |
| isPortraitClick | true if item used on character portrait, false if on character doll in inventory screen. |
| bool Character::wearsEnchantedItem | ( | ItemEnchantment | enchantment | ) | const |
| bool Character::wearsItem | ( | ItemId | itemId | ) | const |
| void Character::Zero | ( | ) |
| IndexedBitset<AWARD_FIRST, AWARD_LAST> Character::_achievedAwardsBits |
| IndexedBitset<1, 512> Character::_characterEventBits |
| char Character::_health_related |
| char Character::_mana_related |
| char Character::_melee_dmg_bonus |
| IndexedArray<bool, ATTRIBUTE_FIRST_STAT, ATTRIBUTE_LAST_STAT> Character::_pureStatPotionUsed |
| char Character::_ranged_atk_bonus |
| char Character::_ranged_dmg_bonus |
| char Character::_some_attack_bonus |
| IndexedArray<int, ATTRIBUTE_FIRST_STAT, ATTRIBUTE_LAST_STAT> Character::_statBonuses |
| IndexedArray<int, ATTRIBUTE_FIRST_STAT, ATTRIBUTE_LAST_STAT> Character::_stats |
| IndexedArray<bool, SPELL_FIRST_REGULAR, SPELL_LAST_REGULAR> Character::bHaveSpell |
| Class Character::classType |
| CharacterConditions Character::conditions |
| uint64_t Character::experience |
| int Character::health |
| CharacterInventory Character::inventory |
| MagicSchool Character::lastOpenedSpellbookPage |
| int Character::mana |
| std::string Character::name |
| IndexedArray<CombinedSkillValue, SKILL_FIRST, SKILL_LAST> Character::pActiveSkills |
| IndexedArray<SpellBuff, CHARACTER_BUFF_FIRST, CHARACTER_BUFF_LAST> Character::pCharacterBuffs |
| PortraitId Character::portrait |
| int16_t Character::portraitImageIndex |
| Duration Character::portraitTimeLength |
| Duration Character::portraitTimePassed |
| int16_t Character::sACModifier |
| int16_t Character::sAgeModifier |
| int16_t Character::sLevelModifier |
| int16_t Character::sResAirBase |
| int16_t Character::sResAirBonus |
| int16_t Character::sResBodyBase |
| int16_t Character::sResBodyBonus |
| int16_t Character::sResDarkBase |
| int16_t Character::sResDarkBonus |
| int16_t Character::sResEarthBase |
| int16_t Character::sResEarthBonus |
| int16_t Character::sResFireBase |
| int16_t Character::sResFireBonus |
| int16_t Character::sResLightBase |
| int16_t Character::sResLightBonus |
| int16_t Character::sResMagicBase |
| int16_t Character::sResMagicBonus |
| int16_t Character::sResMindBase |
| int16_t Character::sResMindBonus |
| int16_t Character::sResPhysicalBase |
| int16_t Character::sResPhysicalBonus |
| int16_t Character::sResSpiritBase |
| int16_t Character::sResSpiritBonus |
| int16_t Character::sResWaterBase |
| int16_t Character::sResWaterBonus |
| TalkAnimation Character::talkAnimation |
| Duration Character::timeToRecovery |
| int Character::uBirthYear |
| uint8_t Character::uCurrentFace |
| char Character::uFullHealthBonus |
| char Character::uFullManaBonus |
| uint16_t Character::uLevel |
| char Character::uNumArmageddonCasts |
| char Character::uNumDivineInterventionCastsThisDay |
| char Character::uNumFireSpikeCasts |
| int Character::uPrevFace |
| int Character::uPrevVoiceID |
| SpellId Character::uQuickSpell |
| Sex Character::uSex |
| int Character::uSkillPoints |
| int Character::uVoiceID |
| std::array<std::optional<LloydBeacon>, 5> Character::vBeacons |