|
Planeshift
|
Represents a stat for the NPC. More...
#include <stat.h>
Public Member Functions | |
| float | GetMax () const |
| Get the max stat value. More... | |
| float | GetRate () const |
| Get the regeneration rate. More... | |
| float | GetValue () const |
| Return the current value of the stat. More... | |
| void | SetMax (float max) |
| Set the maximum stat value. More... | |
| void | SetRate (float rate, csTicks now) |
| Set the regeneration value for this stat. More... | |
| void | SetValue (float value, csTicks now) |
| Set the stat value. More... | |
| Stat () | |
| Constructor. More... | |
| void | Update (csTicks now) |
| Update the stat to now. More... | |
Represents a stat for the NPC.
Used to extrapolated stat values as they regenerate.
|
inline |
|
inline |
| void Stat::SetMax | ( | float | max | ) |
Set the maximum stat value.
| void Stat::SetRate | ( | float | rate, |
| csTicks | now | ||
| ) |
Set the regeneration value for this stat.
| void Stat::SetValue | ( | float | value, |
| csTicks | now | ||
| ) |
Set the stat value.
| void Stat::Update | ( | csTicks | now | ) |
Update the stat to now.