154 return m_MainStats[a_Stat];
165 m_MainStats[a_Stat] = a_Value;
176 m_MainStats[a_Stat] += a_Delta;
178 return m_MainStats[a_Stat];
187 for (
unsigned int i = 0; i < static_cast<unsigned int>(
statCount); ++i)
StatValue GetValue(const eStatistic a_Stat) const
Return the value of the specified stat.
static eStatistic GetPrerequisite(const eStatistic a_Type)
Returns stat prerequisite.
static cStatInfo ms_Info[statCount]
StatValue AddValue(const eStatistic a_Stat, const StatValue a_Delta=1)
Increments the specified stat.
Class used to store and query statistic-related information.
int NoCaseCompare(const AString &s1, const AString &s2)
Case-insensitive string comparison.
static eStatistic GetType(const AString &a_Name)
Name -> Type.
void SetValue(const eStatistic a_Stat, const StatValue a_Value)
Set the value of the specified stat.
#define ARRAYCOUNT(X)
Evaluates to the number of elements in an array (compile-time!)
void Reset()
Reset everything.
static const AString & GetName(const eStatistic a_Type)
Type -> Name.