Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
cStatInfo Class Reference

Class used to store and query statistic-related information. More...

#include <Statistics.h>

Collaboration diagram for cStatInfo:
Collaboration graph
[legend]

Public Member Functions

 cStatInfo ()
 
 cStatInfo (const eStatistic a_Type, const AString &a_Name, const eStatistic a_Depends=statInvalid)
 

Static Public Member Functions

static const AStringGetName (const eStatistic a_Type)
 Type -> Name. More...
 
static eStatistic GetPrerequisite (const eStatistic a_Type)
 Returns stat prerequisite. More...
 
static eStatistic GetType (const AString &a_Name)
 Name -> Type. More...
 

Private Attributes

eStatistic m_Depends
 
AString m_Name
 
eStatistic m_Type
 

Static Private Attributes

static cStatInfo ms_Info [statCount]
 

Detailed Description

Class used to store and query statistic-related information.

Definition at line 88 of file Statistics.h.

Constructor & Destructor Documentation

cStatInfo::cStatInfo ( )

Definition at line 83 of file Statistics.cpp.

cStatInfo::cStatInfo ( const eStatistic  a_Type,
const AString a_Name,
const eStatistic  a_Depends = statInvalid 
)

Definition at line 92 of file Statistics.cpp.

Member Function Documentation

const AString & cStatInfo::GetName ( const eStatistic  a_Type)
static

Type -> Name.

Definition at line 102 of file Statistics.cpp.

eStatistic cStatInfo::GetPrerequisite ( const eStatistic  a_Type)
static

Returns stat prerequisite.

(Used for achievements)

Definition at line 130 of file Statistics.cpp.

eStatistic cStatInfo::GetType ( const AString a_Name)
static

Name -> Type.

Definition at line 113 of file Statistics.cpp.

Member Data Documentation

eStatistic cStatInfo::m_Depends
private

Definition at line 111 of file Statistics.h.

AString cStatInfo::m_Name
private

Definition at line 109 of file Statistics.h.

eStatistic cStatInfo::m_Type
private

Definition at line 107 of file Statistics.h.

cStatInfo cStatInfo::ms_Info
staticprivate

Definition at line 113 of file Statistics.h.


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