Planeshift
Classes | Public Member Functions | Public Attributes

psNPCRaceListMessage Class Reference

The 3rd message sent from server to superclient after successful login. More...

#include <npcmessages.h>

List of all members.

Classes

struct  NPCRaceInfo_t

Public Member Functions

void AddRace (csString &name, float walkSpeed, float runSpeed, const csVector3 &size, float scale, bool last)
 Add Race Info to the message.
 PSF_DECLARE_MSG_FACTORY ()
 psNPCRaceListMessage (MsgEntry *message)
 Crack incoming psMessageBytes struct for inbound use.
 psNPCRaceListMessage (uint32_t clientToken, int count)
 Create psMessageBytes struct for outbound use.
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Convert the message into human readable string.

Public Attributes

csArray< NPCRaceInfo_traceInfo

Detailed Description

The 3rd message sent from server to superclient after successful login.

It is a list of races and its properties.

Definition at line 155 of file npcmessages.h.


Constructor & Destructor Documentation

psNPCRaceListMessage::psNPCRaceListMessage ( uint32_t  clientToken,
int  count 
)

Create psMessageBytes struct for outbound use.

psNPCRaceListMessage::psNPCRaceListMessage ( MsgEntry message)

Crack incoming psMessageBytes struct for inbound use.


Member Function Documentation

void psNPCRaceListMessage::AddRace ( csString &  name,
float  walkSpeed,
float  runSpeed,
const csVector3 &  size,
float  scale,
bool  last 
)

Add Race Info to the message.

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

Convert 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 169 of file npcmessages.h.


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