OpenEnroth 4aaa0a0
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

PortraitId portraitForCondition (Condition condition)
 
Segment< ConditionallConditions ()
 
Segment< MasteryallSkillMasteries ()
 
int spellCountForMastery (Mastery maxMastery)
 
Segment< SkillallSkills ()
 
Segment< SkillallVisibleSkills ()
 
std::initializer_list< SkillallArmorSkills ()
 
std::initializer_list< SkillallWeaponSkills ()
 
std::initializer_list< SkillallMiscSkills ()
 
std::initializer_list< SkillallMagicSkills ()
 
Skill skillForMagicSchool (MagicSchool school)
 
Skill skillForSpell (SpellId spell)
 
Class getTier1Class (Class classType)
 
Class getTier2Class (Class classType)
 
Class getTier3LightClass (Class classType)
 
Class getTier3DarkClass (Class classType)
 
int getClassTier (Class classType)
 
Segment< ClasspromotionsForClass (Class classType)
 
Segment< AttributeallEnchantableAttributes ()
 
Segment< AttributeallStatAttributes ()
 

Function Documentation

◆ allArmorSkills()

std::initializer_list< Skill > 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< Attribute > allEnchantableAttributes ( )
inline
Returns
All attributes that can be improved though attribute item enchantments, like "of Might".

◆ allMagicSkills()

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

◆ allMiscSkills()

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

◆ allSkillMasteries()

Segment< Mastery > allSkillMasteries ( )
inline

◆ allSkills()

Segment< Skill > allSkills ( )
inline

◆ allStatAttributes()

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

◆ allVisibleSkills()

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

◆ allWeaponSkills()

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

◆ getClassTier()

int getClassTier ( Class  classType)
inline

◆ getTier1Class()

Class getTier1Class ( Class  classType)
inline

◆ getTier2Class()

Class getTier2Class ( Class  classType)
inline

◆ getTier3DarkClass()

Class getTier3DarkClass ( Class  classType)
inline

◆ getTier3LightClass()

Class getTier3LightClass ( Class  classType)
inline

◆ portraitForCondition()

PortraitId portraitForCondition ( Condition  condition)

◆ promotionsForClass()

Segment< Class > promotionsForClass ( Class  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()

Skill skillForMagicSchool ( MagicSchool  school)

◆ skillForSpell()

Skill skillForSpell ( SpellId  spell)

◆ spellCountForMastery()

int spellCountForMastery ( Mastery  maxMastery)
inline