20 #ifndef PS_STAT_HEADER 21 #define PS_STAT_HEADER 35 Stat() : value(0.0), max(0.0), rate(0.0), lastUpdate(0) {}
45 void SetValue(
float value, csTicks now);
55 void SetRate(
float rate, csTicks now);
float GetMax() const
Get the max stat value.
void SetMax(float max)
Set the maximum stat value.
float GetRate() const
Get the regeneration rate.
Represents a stat for the NPC.
void SetValue(float value, csTicks now)
Set the stat value.
void SetRate(float rate, csTicks now)
Set the regeneration value for this stat.
float GetValue() const
Return the current value of the stat.
void Update(csTicks now)
Update the stat to now.