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. More... | |
psStatsMessage (MsgEntry *me) | |
Crack open the message from the server. More... | |
psStatsMessage () | |
Send a request to the server for the stats. More... | |
virtual csString | ToString (NetBase::AccessPointers *accessPointers) |
Converts the message into human readable string. More... | |
![]() | |
void | FireEvent () |
Publishes the message to the local program. More... | |
virtual csString | GetMessageTypeName () const =0 |
Gets the name of the message type. More... | |
void | Multicast (csArray< PublishDestination > &multi, uint32_t except, float range) |
Multicasts the message to all current connections. More... | |
psMessageCracker () | |
void | SendMessage () |
Sends the message to the client/server. More... | |
virtual | ~psMessageCracker () |
Public Attributes | |
float | capacity |
float | hp |
float | mana |
bool | request |
float | weight |
![]() | |
int | filterNumber |
csRef< MsgEntry > | msg |
bool | valid |
Additional Inherited Members | |
![]() | |
static MsgHandler * | msghandler |
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 |
Converts the message into human readable string.
accessPointers | A struct to a number of access pointers. |
Implements psMessageCracker.
float psStatsMessage::capacity |
Definition at line 2843 of file messages.h.
float psStatsMessage::hp |
Definition at line 2840 of file messages.h.
float psStatsMessage::mana |
Definition at line 2841 of file messages.h.
bool psStatsMessage::request |
Definition at line 2839 of file messages.h.
float psStatsMessage::weight |
Definition at line 2842 of file messages.h.