Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Class that manages the statistics and achievements of a single player. More...
#include <StatisticsManager.h>
Public Types | |
typedef unsigned | StatValue |
Public Member Functions | |
bool | SatisfiesPrerequisite (CustomStatistic a_Stat) const |
Returns whether the prerequisite for awarding an achievement are satisfied. More... | |
Public Attributes | |
std::unordered_map< CustomStatistic, StatValue > | Custom |
Private Member Functions | |
bool | IsStatisticPresent (CustomStatistic a_Stat) const |
Returns if a statistic is both present and has nonzero value. More... | |
Class that manages the statistics and achievements of a single player.
Definition at line 32 of file StatisticsManager.h.
typedef unsigned StatisticsManager::StatValue |
Definition at line 34 of file StatisticsManager.h.
|
private |
Returns if a statistic is both present and has nonzero value.
Definition at line 57 of file StatisticsManager.cpp.
bool StatisticsManager::SatisfiesPrerequisite | ( | CustomStatistic | a_Stat | ) | const |
Returns whether the prerequisite for awarding an achievement are satisfied.
Definition at line 12 of file StatisticsManager.cpp.
std::unordered_map<CustomStatistic, StatValue> StatisticsManager::Custom |
Definition at line 38 of file StatisticsManager.h.