OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Localization Class Reference

#include <Localization.h>

Public Member Functions

bool Initialize ()
 
const std::string & GetString (unsigned int index) const
 
template<class... Args>
std::string FormatString (unsigned int index, Args &&... args) const
 
const std::string & GetDayName (unsigned int index) const
 
const std::string & GetMonthName (unsigned int index) const
 
const std::string & GetMoonPhaseName (unsigned int index) const
 
const std::string & GetSpellSchoolName (MagicSchool index) const
 
const std::string & GetPartyBuffName (PartyBuff index) const
 
const std::string & GetCharacterBuffName (CharacterBuff index) const
 
const std::string & GetClassName (CharacterClass index) const
 
const std::string & GetClassDescription (CharacterClass index) const
 
const std::string & GetAttirubteName (CharacterAttribute index) const
 
const std::string & GetAttributeDescription (CharacterAttribute index) const
 
const std::string & GetSkillName (CharacterSkillType index) const
 
const std::string & MasteryName (CharacterSkillMastery mastery) const
 
const std::string & MasteryNameLong (CharacterSkillMastery mastery) const
 
const std::string & GetSkillDescription (CharacterSkillType index) const
 
const std::string & GetSkillDescription (CharacterSkillType index, CharacterSkillMastery mastery) const
 
const std::string & GetSkillDescriptionNormal (CharacterSkillType index) const
 
const std::string & GetSkillDescriptionExpert (CharacterSkillType index) const
 
const std::string & GetSkillDescriptionMaster (CharacterSkillType index) const
 
const std::string & GetSkillDescriptionGrand (CharacterSkillType index) const
 
const std::string & GetCharacterConditionName (Condition index) const
 
const std::string & GetAmPm (bool isPm) const
 
const std::string & GetNpcProfessionName (NpcProfession prof) const
 
const std::string & getHPDescription () const
 
const std::string & getSPDescription () const
 
const std::string & getArmourClassDescription () const
 
const std::string & getCharacterConditionDescription () const
 
const std::string & getFastSpellDescription () const
 
const std::string & getAgeDescription () const
 
const std::string & getLevelDescription () const
 
const std::string & getExpDescription () const
 
const std::string & getMeleeAttackDescription () const
 
const std::string & getMeleeDamageDescription () const
 
const std::string & getRangedAttackDescription () const
 
const std::string & getRangedDamageDescription () const
 
const std::string & getFireResistanceDescription () const
 
const std::string & getAirResistanceDescription () const
 
const std::string & getWaterResistanceDescription () const
 
const std::string & getEarthResistanceDescription () const
 
const std::string & getMindResistanceDescription () const
 
const std::string & getBodyResistanceDescription () const
 
const std::string & getSkillPointsDescription () const
 
 Localization ()
 

Private Member Functions

void InitializeMm6ItemCategories ()
 
void InitializeMonthNames ()
 
void InitializeDayNames ()
 
void InitializeMoonPhaseNames ()
 
void InitializeSpellSchoolNames ()
 
void InitializeSpellNames ()
 
void InitializeClassNames ()
 
void InitializeAttributeNames ()
 
void InitializeSkillNames ()
 
void InitializeCharacterConditionNames ()
 
void InitializeNpcProfessionNames ()
 

Private Attributes

std::string localization_raw
 
std::vector< std::string > localization_strings
 
std::string class_desc_raw
 
std::string attribute_desc_raw
 
std::string skill_desc_raw
 
std::array< std::string, 14 > mm6_item_categories
 
std::array< std::string, 12 > month_names
 
std::array< std::string, 7 > day_names
 
std::array< std::string, 5 > moon_phase_names
 
IndexedArray< std::string, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LASTspell_school_names
 
IndexedArray< std::string, PARTY_BUFF_FIRST, PARTY_BUFF_LASTparty_buff_names
 
IndexedArray< std::string, CHARACTER_BUFF_FIRST, CHARACTER_BUFF_LASTcharacter_buff_names
 
IndexedArray< std::string, CLASS_FIRST, CLASS_LASTclass_names
 
IndexedArray< std::string, CLASS_FIRST, CLASS_LASTclass_desciptions
 
IndexedArray< std::string, ATTRIBUTE_FIRST_STAT, ATTRIBUTE_LAST_STATattribute_names
 
IndexedArray< std::string, ATTRIBUTE_FIRST_STAT, ATTRIBUTE_LAST_STATattribute_descriptions
 
IndexedArray< std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLEskill_names
 
IndexedArray< std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLEskill_descriptions
 
IndexedArray< std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLEskill_descriptions_normal
 
IndexedArray< std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLEskill_descriptions_expert
 
IndexedArray< std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLEskill_descriptions_master
 
IndexedArray< std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLEskill_descriptions_grand
 
IndexedArray< std::string, CONDITION_FIRST, CONDITION_LASTcharacter_conditions
 
IndexedArray< std::string, NPC_PROFESSION_FIRST, NPC_PROFESSION_LASTnpc_profession_names
 
std::string hp_description
 
std::string sp_description
 
std::string armour_class_description
 
std::string character_condition_description
 
std::string fast_spell_description
 
std::string age_description
 
std::string level_description
 
std::string exp_description
 
std::string melee_attack_description
 
std::string melee_damage_description
 
std::string ranged_attack_description
 
std::string ranged_damage_description
 
std::string fire_res_description
 
std::string air_res_description
 
std::string water_res_description
 
std::string earth_res_description
 
std::string mind_res_description
 
std::string body_res_description
 
std::string skill_points_description
 
std::string dummy_string
 

Constructor & Destructor Documentation

◆ Localization()

Localization::Localization ( )
inline

Member Function Documentation

◆ FormatString()

template<class... Args>
std::string Localization::FormatString ( unsigned int  index,
Args &&...  args 
) const
inline

◆ getAgeDescription()

const std::string & Localization::getAgeDescription ( ) const
inline

◆ getAirResistanceDescription()

const std::string & Localization::getAirResistanceDescription ( ) const
inline

◆ GetAmPm()

const std::string & Localization::GetAmPm ( bool  isPm) const
inline

◆ getArmourClassDescription()

const std::string & Localization::getArmourClassDescription ( ) const
inline

◆ GetAttirubteName()

const std::string & Localization::GetAttirubteName ( CharacterAttribute  index) const
inline

◆ GetAttributeDescription()

const std::string & Localization::GetAttributeDescription ( CharacterAttribute  index) const
inline

◆ getBodyResistanceDescription()

const std::string & Localization::getBodyResistanceDescription ( ) const
inline

◆ GetCharacterBuffName()

const std::string & Localization::GetCharacterBuffName ( CharacterBuff  index) const
inline

◆ getCharacterConditionDescription()

const std::string & Localization::getCharacterConditionDescription ( ) const
inline

◆ GetCharacterConditionName()

const std::string & Localization::GetCharacterConditionName ( Condition  index) const
inline

◆ GetClassDescription()

const std::string & Localization::GetClassDescription ( CharacterClass  index) const
inline

◆ GetClassName()

const std::string & Localization::GetClassName ( CharacterClass  index) const
inline

◆ GetDayName()

const std::string & Localization::GetDayName ( unsigned int  index) const
inline

◆ getEarthResistanceDescription()

const std::string & Localization::getEarthResistanceDescription ( ) const
inline

◆ getExpDescription()

const std::string & Localization::getExpDescription ( ) const
inline

◆ getFastSpellDescription()

const std::string & Localization::getFastSpellDescription ( ) const
inline

◆ getFireResistanceDescription()

const std::string & Localization::getFireResistanceDescription ( ) const
inline

◆ getHPDescription()

const std::string & Localization::getHPDescription ( ) const
inline

◆ getLevelDescription()

const std::string & Localization::getLevelDescription ( ) const
inline

◆ getMeleeAttackDescription()

const std::string & Localization::getMeleeAttackDescription ( ) const
inline

◆ getMeleeDamageDescription()

const std::string & Localization::getMeleeDamageDescription ( ) const
inline

◆ getMindResistanceDescription()

const std::string & Localization::getMindResistanceDescription ( ) const
inline

◆ GetMonthName()

const std::string & Localization::GetMonthName ( unsigned int  index) const
inline

◆ GetMoonPhaseName()

const std::string & Localization::GetMoonPhaseName ( unsigned int  index) const
inline

◆ GetNpcProfessionName()

const std::string & Localization::GetNpcProfessionName ( NpcProfession  prof) const
inline

◆ GetPartyBuffName()

const std::string & Localization::GetPartyBuffName ( PartyBuff  index) const
inline

◆ getRangedAttackDescription()

const std::string & Localization::getRangedAttackDescription ( ) const
inline

◆ getRangedDamageDescription()

const std::string & Localization::getRangedDamageDescription ( ) const
inline

◆ GetSkillDescription() [1/2]

const std::string & Localization::GetSkillDescription ( CharacterSkillType  index) const
inline

◆ GetSkillDescription() [2/2]

const std::string & Localization::GetSkillDescription ( CharacterSkillType  index,
CharacterSkillMastery  mastery 
) const
inline

◆ GetSkillDescriptionExpert()

const std::string & Localization::GetSkillDescriptionExpert ( CharacterSkillType  index) const
inline

◆ GetSkillDescriptionGrand()

const std::string & Localization::GetSkillDescriptionGrand ( CharacterSkillType  index) const
inline

◆ GetSkillDescriptionMaster()

const std::string & Localization::GetSkillDescriptionMaster ( CharacterSkillType  index) const
inline

◆ GetSkillDescriptionNormal()

const std::string & Localization::GetSkillDescriptionNormal ( CharacterSkillType  index) const
inline

◆ GetSkillName()

const std::string & Localization::GetSkillName ( CharacterSkillType  index) const
inline

◆ getSkillPointsDescription()

const std::string & Localization::getSkillPointsDescription ( ) const
inline

◆ getSPDescription()

const std::string & Localization::getSPDescription ( ) const
inline

◆ GetSpellSchoolName()

const std::string & Localization::GetSpellSchoolName ( MagicSchool  index) const
inline

◆ GetString()

const std::string & Localization::GetString ( unsigned int  index) const

◆ getWaterResistanceDescription()

const std::string & Localization::getWaterResistanceDescription ( ) const
inline

◆ Initialize()

bool Localization::Initialize ( )

◆ InitializeAttributeNames()

void Localization::InitializeAttributeNames ( )
private

◆ InitializeCharacterConditionNames()

void Localization::InitializeCharacterConditionNames ( )
private

◆ InitializeClassNames()

void Localization::InitializeClassNames ( )
private

◆ InitializeDayNames()

void Localization::InitializeDayNames ( )
private

◆ InitializeMm6ItemCategories()

void Localization::InitializeMm6ItemCategories ( )
private

◆ InitializeMonthNames()

void Localization::InitializeMonthNames ( )
private

◆ InitializeMoonPhaseNames()

void Localization::InitializeMoonPhaseNames ( )
private

◆ InitializeNpcProfessionNames()

void Localization::InitializeNpcProfessionNames ( )
private

◆ InitializeSkillNames()

void Localization::InitializeSkillNames ( )
private

◆ InitializeSpellNames()

void Localization::InitializeSpellNames ( )
private

◆ InitializeSpellSchoolNames()

void Localization::InitializeSpellSchoolNames ( )
private

◆ MasteryName()

const std::string & Localization::MasteryName ( CharacterSkillMastery  mastery) const
inline

◆ MasteryNameLong()

const std::string & Localization::MasteryNameLong ( CharacterSkillMastery  mastery) const
inline

Member Data Documentation

◆ age_description

std::string Localization::age_description
private

◆ air_res_description

std::string Localization::air_res_description
private

◆ armour_class_description

std::string Localization::armour_class_description
private

◆ attribute_desc_raw

std::string Localization::attribute_desc_raw
private

◆ attribute_descriptions

IndexedArray<std::string, ATTRIBUTE_FIRST_STAT, ATTRIBUTE_LAST_STAT> Localization::attribute_descriptions
private

◆ attribute_names

IndexedArray<std::string, ATTRIBUTE_FIRST_STAT, ATTRIBUTE_LAST_STAT> Localization::attribute_names
private

◆ body_res_description

std::string Localization::body_res_description
private

◆ character_buff_names

IndexedArray<std::string, CHARACTER_BUFF_FIRST, CHARACTER_BUFF_LAST> Localization::character_buff_names
private

◆ character_condition_description

std::string Localization::character_condition_description
private

◆ character_conditions

IndexedArray<std::string, CONDITION_FIRST, CONDITION_LAST> Localization::character_conditions
private

◆ class_desc_raw

std::string Localization::class_desc_raw
private

◆ class_desciptions

IndexedArray<std::string, CLASS_FIRST, CLASS_LAST> Localization::class_desciptions
private

◆ class_names

IndexedArray<std::string, CLASS_FIRST, CLASS_LAST> Localization::class_names
private

◆ day_names

std::array<std::string, 7> Localization::day_names
private

◆ dummy_string

std::string Localization::dummy_string
private

◆ earth_res_description

std::string Localization::earth_res_description
private

◆ exp_description

std::string Localization::exp_description
private

◆ fast_spell_description

std::string Localization::fast_spell_description
private

◆ fire_res_description

std::string Localization::fire_res_description
private

◆ hp_description

std::string Localization::hp_description
private

◆ level_description

std::string Localization::level_description
private

◆ localization_raw

std::string Localization::localization_raw
private

◆ localization_strings

std::vector<std::string> Localization::localization_strings
private

◆ melee_attack_description

std::string Localization::melee_attack_description
private

◆ melee_damage_description

std::string Localization::melee_damage_description
private

◆ mind_res_description

std::string Localization::mind_res_description
private

◆ mm6_item_categories

std::array<std::string, 14> Localization::mm6_item_categories
private

◆ month_names

std::array<std::string, 12> Localization::month_names
private

◆ moon_phase_names

std::array<std::string, 5> Localization::moon_phase_names
private

◆ npc_profession_names

IndexedArray<std::string, NPC_PROFESSION_FIRST, NPC_PROFESSION_LAST> Localization::npc_profession_names
private

◆ party_buff_names

IndexedArray<std::string, PARTY_BUFF_FIRST, PARTY_BUFF_LAST> Localization::party_buff_names
private

◆ ranged_attack_description

std::string Localization::ranged_attack_description
private

◆ ranged_damage_description

std::string Localization::ranged_damage_description
private

◆ skill_desc_raw

std::string Localization::skill_desc_raw
private

◆ skill_descriptions

IndexedArray<std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLE> Localization::skill_descriptions
private

◆ skill_descriptions_expert

IndexedArray<std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLE> Localization::skill_descriptions_expert
private

◆ skill_descriptions_grand

IndexedArray<std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLE> Localization::skill_descriptions_grand
private

◆ skill_descriptions_master

IndexedArray<std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLE> Localization::skill_descriptions_master
private

◆ skill_descriptions_normal

IndexedArray<std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLE> Localization::skill_descriptions_normal
private

◆ skill_names

IndexedArray<std::string, CHARACTER_SKILL_INVALID, CHARACTER_SKILL_LAST_VISIBLE> Localization::skill_names
private

◆ skill_points_description

std::string Localization::skill_points_description
private

◆ sp_description

std::string Localization::sp_description
private

◆ spell_school_names

IndexedArray<std::string, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> Localization::spell_school_names
private

◆ water_res_description

std::string Localization::water_res_description
private

The documentation for this class was generated from the following files: