Planeshift
Public Member Functions

psServerVitals Class Reference

Server side of the character vitals manager. More...

#include <servervitals.h>

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

psServerVitals::psServerVitals ( psCharacter character)

Member Function Documentation

void psServerVitals::AdjustVital ( int  vitalName,
int  dirtyFlag,
float  delta 
)
void psServerVitals::ClearStatsDirtyFlags ( unsigned int  dirtyFlags)

Cleare the dirty flags for vitals.

unsigned int psServerVitals::GetStatsDirtyFlags ( ) const

Return 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.

void psServerVitals::SetExp ( unsigned int  exp)
void psServerVitals::SetPP ( unsigned int  pp)
void psServerVitals::SetVital ( int  vitalName,
int  dirtyFlag,
float  value 
)
bool psServerVitals::Update ( csTicks  now)

The documentation for this class was generated from the following file: