OpenEnroth 73e68f7
|
#include <CombinedSkillValue.h>
Public Member Functions | |
CombinedSkillValue () | |
CombinedSkillValue (int level, CharacterSkillMastery mastery) | |
uint16_t | joined () const |
int | level () const |
CharacterSkillMastery | mastery () const |
operator bool () const | |
Static Public Member Functions | |
static CombinedSkillValue | none () |
static CombinedSkillValue | novice (int level=1) |
static CombinedSkillValue | increaseLevel (CombinedSkillValue current) |
static CombinedSkillValue | increaseMastery (CombinedSkillValue current, CharacterSkillMastery newMastery) |
static CombinedSkillValue | fromJoined (uint16_t joinedValue) |
static std::pair< int, CharacterSkillMastery > | fromJoinedUnchecked (uint16_t joinedValue) |
Private Attributes | |
int | _level = 0 |
CharacterSkillMastery | _mastery = CHARACTER_SKILL_MASTERY_NONE |
Friends | |
bool | operator== (const CombinedSkillValue &l, const CombinedSkillValue &r)=default |
Simple POD-like class for storing full skill value (level and mastery).
CombinedSkillValue::CombinedSkillValue | ( | ) |
CombinedSkillValue::CombinedSkillValue | ( | int | level, |
CharacterSkillMastery | mastery | ||
) |
|
static |
|
static |
|
static |
|
static |
uint16_t CombinedSkillValue::joined | ( | ) | const |
int CombinedSkillValue::level | ( | ) | const |
CharacterSkillMastery CombinedSkillValue::mastery | ( | ) | const |
|
static |
|
static |
|
inlineexplicit |
|
friend |
|
private |
|
private |