OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions
CharacterEnumFunctions.h File Reference
#include <cassert>
#include <utility>
#include "Engine/Spells/SpellEnums.h"
#include "Utility/Segment.h"
#include "CharacterEnums.h"

Functions

CharacterPortrait portraitForCondition (Condition condition)
 
Segment< ConditionallConditions ()
 
Segment< CharacterSkillMasteryallSkillMasteries ()
 
int spellCountForMastery (CharacterSkillMastery maxMastery)
 
Segment< CharacterSkillTypeallSkills ()
 
Segment< CharacterSkillTypeallVisibleSkills ()
 
std::initializer_list< CharacterSkillTypeallArmorSkills ()
 
std::initializer_list< CharacterSkillTypeallWeaponSkills ()
 
std::initializer_list< CharacterSkillTypeallMiscSkills ()
 
std::initializer_list< CharacterSkillTypeallMagicSkills ()
 
CharacterSkillType skillForMagicSchool (MagicSchool school)
 
CharacterSkillType skillForSpell (SpellId spell)
 
CharacterClass getTier1Class (CharacterClass classType)
 
CharacterClass getTier2Class (CharacterClass classType)
 
CharacterClass getTier3LightClass (CharacterClass classType)
 
CharacterClass getTier3DarkClass (CharacterClass classType)
 
int getClassTier (CharacterClass classType)
 
Segment< CharacterClasspromotionsForClass (CharacterClass classType)
 
Segment< CharacterAttributeallEnchantableAttributes ()
 
Segment< CharacterAttributeallStatAttributes ()
 

Function Documentation

◆ allArmorSkills()

std::initializer_list< CharacterSkillType > allArmorSkills ( )
inline
Returns
List of skills that are drawn in the "Armor" section of the character screen's skills tab.

◆ allConditions()

Segment< Condition > allConditions ( )
inline
Returns
List of conditions that can be applied to the character.

◆ allEnchantableAttributes()

Segment< CharacterAttribute > allEnchantableAttributes ( )
inline
Returns
All attributes that can be improved though attribute item enchantments, like "of Might".

◆ allMagicSkills()

std::initializer_list< CharacterSkillType > allMagicSkills ( )
inline
Returns
List of skills that are drawn in the "Magic" section of the character screen's skills tab.

◆ allMiscSkills()

std::initializer_list< CharacterSkillType > allMiscSkills ( )
inline
Returns
List of skills that are drawn in the "Misc" section of the character screen's skills tab.

◆ allSkillMasteries()

Segment< CharacterSkillMastery > allSkillMasteries ( )
inline

◆ allSkills()

Segment< CharacterSkillType > allSkills ( )
inline

◆ allStatAttributes()

Segment< CharacterAttribute > allStatAttributes ( )
inline
Returns
Segment containing the 7 basic character stats (starting with might & ending with luck).

◆ allVisibleSkills()

Segment< CharacterSkillType > allVisibleSkills ( )
inline
Returns
List of skills that are visible to the player and that are stored in a savegame.

◆ allWeaponSkills()

std::initializer_list< CharacterSkillType > allWeaponSkills ( )
inline
Returns
List of skills that are drawn in the "Weapons" section of the character screen's skills tab.

◆ getClassTier()

int getClassTier ( CharacterClass  classType)
inline

◆ getTier1Class()

CharacterClass getTier1Class ( CharacterClass  classType)
inline

◆ getTier2Class()

CharacterClass getTier2Class ( CharacterClass  classType)
inline

◆ getTier3DarkClass()

CharacterClass getTier3DarkClass ( CharacterClass  classType)
inline

◆ getTier3LightClass()

CharacterClass getTier3LightClass ( CharacterClass  classType)
inline

◆ portraitForCondition()

CharacterPortrait portraitForCondition ( Condition  condition)

◆ promotionsForClass()

Segment< CharacterClass > promotionsForClass ( CharacterClass  classType)
inline

Get promotions of higher tier class relative to given one.

Base class is of tier 1. After initial promotion class becomes tier 2. Tier 2 class is promoted through light or dark path to tier 3 class.

Parameters
classTypeCharacter class.
Returns
All classes that the given class can be promoted to.

◆ skillForMagicSchool()

CharacterSkillType skillForMagicSchool ( MagicSchool  school)

◆ skillForSpell()

CharacterSkillType skillForSpell ( SpellId  spell)

◆ spellCountForMastery()

int spellCountForMastery ( CharacterSkillMastery  maxMastery)
inline