Planeshift
Public Member Functions

psClientVitals Class Reference

Handles the incoming vital data from the server to update it's local values. More...

#include <clientvitals.h>

List of all members.

Public Member Functions

void HandleDeath (const char *labelname)
 Reset virtuals on death.
void HandleDRData (psStatDRMessage &msg, const char *labelname)
 Handles new Vital data from the server.
void Predict (csTicks now, const char *labelname)
 Predicts the new values of the various Vitals.
 psClientVitals ()

Detailed Description

Handles the incoming vital data from the server to update it's local values.

Definition at line 50 of file clientvitals.h.


Constructor & Destructor Documentation

psClientVitals::psClientVitals ( )

Member Function Documentation

void psClientVitals::HandleDeath ( const char *  labelname)

Reset virtuals on death.

Parameters:
labelnameThe label to be appended to published values
void psClientVitals::HandleDRData ( psStatDRMessage msg,
const char *  labelname 
)

Handles new Vital data from the server.

Parameters:
msgThe Vital message from the server with the correct values for this Vital.
labelnameThe label to be appended to published values
void psClientVitals::Predict ( csTicks  now,
const char *  labelname 
)

Predicts the new values of the various Vitals.

This helps limit the lag time in getting new values for these Vitals.

Parameters:
nowThe current ticks to use from last valid data from the server.
labelnameThe label to be appended to published values

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