20 #ifndef PS_VITAL_HEADER 21 #define PS_VITAL_HEADER 23 #define HP_REGEN_RATE 0.2F 24 #define MANA_REGEN_RATE 0.2F 67 template <
typename Vital>
void SetVitals(const psVitalManager &newVitalMgr)
PS_VITALS
The vitals that the client is concerned about.
unsigned int experiencePoints
Players current experience points.
void ResetVitals()
Reset to the "original" vitals (for use when killing NPCs).
unsigned int progressionPoints
Players progression Points.
PS_DIRTY_VITALS
Used by the server to tell which fields are incoming.
unsigned int GetExp()
Get players experience points.
Manages a set of Vitals and does the predictions and updates on them when new data comes from the ser...
unsigned int GetPP()
Gets a players current progression points.
void SetOrigVitals()
Saves the current vitals as the "original".
Vital vitals[VITAL_COUNT]
A list of player vitals.
A character vital (such as HP or Mana) - client side.
Vital & GetVital(int vital)
Get a reference to a particular vital.
Vital origVitals[VITAL_COUNT]