Planeshift
|
Manages a set of Vitals and does the predictions and updates on them when new data comes from the server. More...
#include <vitals.h>
Public Member Functions | |
unsigned int | GetExp () |
Get players experience points. | |
float | GetHP () |
float | GetMana () |
float | GetMStamina () |
unsigned int | GetPP () |
Gets a players current progression points. | |
float | GetPStamina () |
Vital & | GetVital (int vital) |
Get a reference to a particular vital. | |
psVitalManager () | |
void | ResetVitals () |
Reset to the "original" vitals (for use when killing NPCs). | |
void | SetOrigVitals () |
Saves the current vitals as the "original". | |
void | SetVitals (const psVitalManager &newVitalMgr) |
~psVitalManager () | |
Protected Attributes | |
unsigned int | experiencePoints |
Players current experience points. | |
csTicks | lastDRUpdate |
Vital | origVitals [VITAL_COUNT] |
unsigned int | progressionPoints |
Players progression Points. | |
Vital | vitals [VITAL_COUNT] |
A list of player vitals. |
Manages a set of Vitals and does the predictions and updates on them when new data comes from the server.
psVitalManager< Vital >::psVitalManager | ( | ) | [inline] |
psVitalManager< Vital >::~psVitalManager | ( | ) | [inline] |
unsigned int psVitalManager< Vital >::GetExp | ( | ) | [inline] |
float psVitalManager< Vital >::GetHP | ( | ) | [inline] |
float psVitalManager< Vital >::GetMana | ( | ) | [inline] |
float psVitalManager< Vital >::GetMStamina | ( | ) | [inline] |
unsigned int psVitalManager< Vital >::GetPP | ( | ) | [inline] |
float psVitalManager< Vital >::GetPStamina | ( | ) | [inline] |
Vital& psVitalManager< Vital >::GetVital | ( | int | vital | ) | [inline] |
void psVitalManager< Vital >::ResetVitals | ( | ) | [inline] |
void psVitalManager< Vital >::SetOrigVitals | ( | ) | [inline] |
void psVitalManager< Vital >::SetVitals | ( | const psVitalManager< Vital > & | newVitalMgr | ) | [inline] |
unsigned int psVitalManager< Vital >::experiencePoints [protected] |
csTicks psVitalManager< Vital >::lastDRUpdate [protected] |
Vital psVitalManager< Vital >::origVitals[VITAL_COUNT] [protected] |
unsigned int psVitalManager< Vital >::progressionPoints [protected] |
Vital psVitalManager< Vital >::vitals[VITAL_COUNT] [protected] |