Planeshift
|
Server side of the character vitals manager. More...
#include <servervitals.h>
Public Member Functions | |
void | AdjustVital (int vitalName, int dirtyFlag, float delta) |
void | ClearStatsDirtyFlags (unsigned int dirtyFlags) |
Cleare the dirty flags for vitals. | |
unsigned int | GetStatsDirtyFlags () const |
Return the dirty flags for vitals. | |
psServerVitals (psCharacter *character) | |
bool | SendStatDRMessage (uint32_t clientnum, EID eid, unsigned int flags, csRef< PlayerGroup > group=NULL) |
Handles new Vital data construction for the server. | |
void | SetAllStatsDirty () |
Set all vitals dirty. | |
void | SetExp (unsigned int exp) |
void | SetPP (unsigned int pp) |
void | SetVital (int vitalName, int dirtyFlag, float value) |
bool | Update (csTicks now) |
Server side of the character vitals manager.
Does a lot more accessing of the data to set particular things. Also does construction of data to send to a client.
Definition at line 80 of file servervitals.h.
psServerVitals::psServerVitals | ( | psCharacter * | character | ) |
Cleare the dirty flags for vitals.
bool psServerVitals::SendStatDRMessage | ( | uint32_t | clientnum, |
EID | eid, | ||
unsigned int | flags, | ||
csRef< PlayerGroup > | group = NULL |
||
) |
Handles new Vital data construction for the server.
void psServerVitals::SetAllStatsDirty | ( | ) |
Set all vitals dirty.
bool psServerVitals::Update | ( | csTicks | now | ) |