Planeshift
Public Types | Public Member Functions | Public Attributes | Static Public Attributes

psGUISkillMessage Class Reference

GUI Skill Message. More...

#include <messages.h>

List of all members.

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.
 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.
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

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

Static Public Attributes

static const char * SkillCommandString []

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

Definition at line 2926 of file messages.h.

Definition at line 2929 of file messages.h.

Definition at line 2920 of file messages.h.

Definition at line 2921 of file messages.h.

Definition at line 2925 of file messages.h.

Definition at line 2940 of file messages.h.

Definition at line 2930 of file messages.h.

Definition at line 2935 of file messages.h.

Definition at line 2927 of file messages.h.

Definition at line 2931 of file messages.h.

Definition at line 2936 of file messages.h.

Definition at line 2933 of file messages.h.

Definition at line 2938 of file messages.h.

Definition at line 2939 of file messages.h.

Definition at line 2932 of file messages.h.

Definition at line 2937 of file messages.h.

Definition at line 2922 of file messages.h.

Definition at line 2941 of file messages.h.

const char* psGUISkillMessage::SkillCommandString[] [static]

Definition at line 2868 of file messages.h.

Definition at line 2924 of file messages.h.

Definition at line 2942 of file messages.h.

Definition at line 2928 of file messages.h.


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