Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
StatisticsManager Struct Reference

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, StatValueCustom
 

Private Member Functions

bool IsStatisticPresent (CustomStatistic a_Stat) const
 Returns if a statistic is both present and has nonzero value. More...
 

Detailed Description

Class that manages the statistics and achievements of a single player.

Definition at line 32 of file StatisticsManager.h.

Member Typedef Documentation

◆ StatValue

typedef unsigned StatisticsManager::StatValue

Definition at line 34 of file StatisticsManager.h.

Member Function Documentation

◆ IsStatisticPresent()

bool StatisticsManager::IsStatisticPresent ( CustomStatistic  a_Stat) const
private

Returns if a statistic is both present and has nonzero value.

Definition at line 57 of file StatisticsManager.cpp.

◆ SatisfiesPrerequisite()

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.

Member Data Documentation

◆ Custom

std::unordered_map<CustomStatistic, StatValue> StatisticsManager::Custom

Definition at line 38 of file StatisticsManager.h.


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