Planeshift
psModeMessage Class Reference

Sends messages to the client indicating player combat stance. More...

#include <messages.h>

Public Types

enum  playerMode {
  PEACE = 1, COMBAT, SPELL_CASTING, WORK,
  DEAD, SIT, OVERWEIGHT, EXHAUSTED,
  DEFEATED, STATUE, PLAY, WALK,
  RUN
}
 

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 
 psModeMessage (uint32_t clientnum, EID actorID, uint8_t mode, uint32_t value)
 
 psModeMessage (MsgEntry *message)
 
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string. More...
 
- Public Member Functions inherited from psMessageCracker
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

EID actorID
 
uint8_t mode
 
uint32_t value
 stance if COMBAT, duration if SPELL_CASTING, ... More...
 
- Public Attributes inherited from psMessageCracker
int filterNumber
 
csRef< MsgEntry > msg
 
bool valid
 

Additional Inherited Members

- Static Public Attributes inherited from psMessageCracker
static MsgHandler * msghandler
 

Detailed Description

Sends messages to the client indicating player combat stance.

Definition at line 1528 of file messages.h.

Member Enumeration Documentation

Enumerator
PEACE 
COMBAT 
SPELL_CASTING 
WORK 
DEAD 
SIT 
OVERWEIGHT 
EXHAUSTED 
DEFEATED 
STATUE 
PLAY 
WALK 
RUN 

Definition at line 1544 of file messages.h.

Constructor & Destructor Documentation

psModeMessage::psModeMessage ( uint32_t  clientnum,
EID  actorID,
uint8_t  mode,
uint32_t  value 
)
psModeMessage::psModeMessage ( MsgEntry *  message)

Member Function Documentation

psModeMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psModeMessage::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

EID psModeMessage::actorID

Definition at line 1562 of file messages.h.

uint8_t psModeMessage::mode

Definition at line 1563 of file messages.h.

uint32_t psModeMessage::value

stance if COMBAT, duration if SPELL_CASTING, ...

Definition at line 1564 of file messages.h.


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