Planeshift
Public Member Functions | Public Attributes

psStatsMessage Class Reference

This message is sent to the client to let it know the basic stats of the player. More...

#include <messages.h>

List of all members.

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 psStatsMessage (uint32_t client, float maxHP, float maxMana, float maxWeight, float maxCapacity)
 Sends a message to the client.
 psStatsMessage (MsgEntry *me)
 Crack open the message from the server.
 psStatsMessage ()
 Send a request to the server for the stats.
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

Public Attributes

float capacity
float hp
float mana
bool request
float weight

Detailed Description

This message is sent to the client to let it know the basic stats of the player.

Definition at line 2811 of file messages.h.


Constructor & Destructor Documentation

psStatsMessage::psStatsMessage ( uint32_t  client,
float  maxHP,
float  maxMana,
float  maxWeight,
float  maxCapacity 
)

Sends a message to the client.

Parameters:
clientThe active client number to send to.
maxHPThe newly calculated maximum HP for this client's character.
maxManaThe newly calculated maximum mana for this client's character.
maxWeightThe maximum weight that this character can carry.
maxCapacityThe maximum capacity of items that this character can carry.
psStatsMessage::psStatsMessage ( MsgEntry me)

Crack open the message from the server.

psStatsMessage::psStatsMessage ( )

Send a request to the server for the stats.


Member Function Documentation

psStatsMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psStatsMessage::ToString ( NetBase::AccessPointers accessPointers) [virtual]

Converts the message into human readable string.

Parameters:
accessPointersA struct to a number of access pointers.
Returns:
Return a human readable string for the message.

Implements psMessageCracker.


Member Data Documentation

Definition at line 2843 of file messages.h.

Definition at line 2840 of file messages.h.

Definition at line 2841 of file messages.h.

Definition at line 2839 of file messages.h.

Definition at line 2842 of file messages.h.


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