Planeshift
psGUISkillMessage Class Reference

GUI Skill Message. More...

#include <messages.h>

Public Types

enum  Command {
  REQUEST, BUY_SKILL, SKILL_LIST, SKILL_SELECTED,
  DESCRIPTION, QUIT
}
 

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 
 psGUISkillMessage (uint8_t command, csString commandData)
 Constucts a new equipment message to go on the network. More...
 
 psGUISkillMessage (uint32_t clientNum, uint8_t command, csString commandData, psSkillCache *skills, uint32_t str, uint32_t end, uint32_t agi, uint32_t inl, uint32_t wil, uint32_t chr, uint32_t hp, uint32_t man, uint32_t physSta, uint32_t menSta, uint32_t hpMax, uint32_t manMax, uint32_t physStaMax, uint32_t menStaMax, bool open, int32_t focus, int32_t selSkillCat, bool isTraining)
 
 psGUISkillMessage (MsgEntry *message)
 Crack this message off the network. More...
 
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

unsigned int agility
 
unsigned int charisma
 
uint8_t command
 
csString commandData
 
unsigned int endurance
 
int32_t focusSkill
 
unsigned int hitpoints
 
unsigned int hitpointsMax
 
unsigned int intelligence
 
unsigned int mana
 
unsigned int manaMax
 
unsigned int menStamina
 
unsigned int menStaminaMax
 
bool openWindow
 
unsigned int physStamina
 
unsigned int physStaminaMax
 
psSkillCache skillCache
 
int32_t skillCat
 
unsigned int strength
 
bool trainingWindow
 
unsigned int will
 
- Public Attributes inherited from psMessageCracker
int filterNumber
 
csRef< MsgEntrymsg
 
bool valid
 

Static Public Attributes

static const char * SkillCommandString []
 
- Static Public Attributes inherited from psMessageCracker
static MsgHandlermsghandler
 

Detailed Description

GUI Skill Message.

This message is used to manage the player skill window. The client psSkillWindow and server psProgressionManager will deal with this messages.

Definition at line 2857 of file messages.h.

Member Enumeration Documentation

Enumerator
REQUEST 
BUY_SKILL 
SKILL_LIST 
SKILL_SELECTED 
DESCRIPTION 
QUIT 

Definition at line 2860 of file messages.h.

Constructor & Destructor Documentation

psGUISkillMessage::psGUISkillMessage ( uint8_t  command,
csString  commandData 
)

Constucts a new equipment message to go on the network.

This will build any of the GUI exchange message needed in a skill window.

Parameters
commandOne of REQUEST,BUY_SKILL, SKILL_LIST SKILL_SELECTED, DESCRIPTION, QUIT
commandDataXML string with command data
psGUISkillMessage::psGUISkillMessage ( uint32_t  clientNum,
uint8_t  command,
csString  commandData,
psSkillCache skills,
uint32_t  str,
uint32_t  end,
uint32_t  agi,
uint32_t  inl,
uint32_t  wil,
uint32_t  chr,
uint32_t  hp,
uint32_t  man,
uint32_t  physSta,
uint32_t  menSta,
uint32_t  hpMax,
uint32_t  manMax,
uint32_t  physStaMax,
uint32_t  menStaMax,
bool  open,
int32_t  focus,
int32_t  selSkillCat,
bool  isTraining 
)
psGUISkillMessage::psGUISkillMessage ( MsgEntry message)

Crack this message off the network.

Member Function Documentation

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

unsigned int psGUISkillMessage::agility

Definition at line 2926 of file messages.h.

unsigned int psGUISkillMessage::charisma

Definition at line 2929 of file messages.h.

uint8_t psGUISkillMessage::command

Definition at line 2920 of file messages.h.

csString psGUISkillMessage::commandData

Definition at line 2921 of file messages.h.

unsigned int psGUISkillMessage::endurance

Definition at line 2925 of file messages.h.

int32_t psGUISkillMessage::focusSkill

Definition at line 2940 of file messages.h.

unsigned int psGUISkillMessage::hitpoints

Definition at line 2930 of file messages.h.

unsigned int psGUISkillMessage::hitpointsMax

Definition at line 2935 of file messages.h.

unsigned int psGUISkillMessage::intelligence

Definition at line 2927 of file messages.h.

unsigned int psGUISkillMessage::mana

Definition at line 2931 of file messages.h.

unsigned int psGUISkillMessage::manaMax

Definition at line 2936 of file messages.h.

unsigned int psGUISkillMessage::menStamina

Definition at line 2933 of file messages.h.

unsigned int psGUISkillMessage::menStaminaMax

Definition at line 2938 of file messages.h.

bool psGUISkillMessage::openWindow

Definition at line 2939 of file messages.h.

unsigned int psGUISkillMessage::physStamina

Definition at line 2932 of file messages.h.

unsigned int psGUISkillMessage::physStaminaMax

Definition at line 2937 of file messages.h.

psSkillCache psGUISkillMessage::skillCache

Definition at line 2922 of file messages.h.

int32_t psGUISkillMessage::skillCat

Definition at line 2941 of file messages.h.

const char* psGUISkillMessage::SkillCommandString[]
static

Definition at line 2868 of file messages.h.

unsigned int psGUISkillMessage::strength

Definition at line 2924 of file messages.h.

bool psGUISkillMessage::trainingWindow

Definition at line 2942 of file messages.h.

unsigned int psGUISkillMessage::will

Definition at line 2928 of file messages.h.


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