Planeshift
|
This message is sent to the client to let it know the basic stats of the player. More...
#include <messages.h>
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 |
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.
psStatsMessage::psStatsMessage | ( | uint32_t | client, |
float | maxHP, | ||
float | maxMana, | ||
float | maxWeight, | ||
float | maxCapacity | ||
) |
Sends a message to the client.
client | The active client number to send to. |
maxHP | The newly calculated maximum HP for this client's character. |
maxMana | The newly calculated maximum mana for this client's character. |
maxWeight | The maximum weight that this character can carry. |
maxCapacity | The 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.
psStatsMessage::PSF_DECLARE_MSG_FACTORY | ( | ) |
virtual csString psStatsMessage::ToString | ( | NetBase::AccessPointers * | accessPointers | ) | [virtual] |
Converts the message into human readable string.
accessPointers | A struct to a number of access pointers. |
Implements psMessageCracker.
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.