|
OpenEnroth f4187e5
|
#include <CombinedSkillValue.h>
Public Member Functions | |
| CombinedSkillValue () | |
| CombinedSkillValue (int level, Mastery mastery) | |
| uint16_t | joined () const |
| int | level () const |
| Mastery | mastery () const |
| operator bool () const | |
Static Public Member Functions | |
| static bool | isValid (int level, Mastery mastery) |
| static CombinedSkillValue | none () |
| static CombinedSkillValue | novice (int level=1) |
| static CombinedSkillValue | increaseLevel (CombinedSkillValue current) |
| static CombinedSkillValue | increaseMastery (CombinedSkillValue current, Mastery newMastery) |
| static CombinedSkillValue | fromJoined (uint16_t joinedValue) |
| static std::pair< int, Mastery > | fromJoinedUnchecked (uint16_t joinedValue) |
Private Attributes | |
| int | _level = 0 |
| Mastery | _mastery = 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, |
| Mastery | mastery | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| level | Skill level to check. |
| mastery | Skill mastery to check. |
CombinedSkillValue constructor asserts on invalid skill-mastery pairs. | uint16_t CombinedSkillValue::joined | ( | ) | const |
| int CombinedSkillValue::level | ( | ) | const |
| Mastery CombinedSkillValue::mastery | ( | ) | const |
|
static |
|
static |
|
inlineexplicit |
|
friend |
|
private |
|
private |