Planeshift
psGUIMerchantMessage Class Reference

GUI Exchange Message. More...

#include <messages.h>

Public Types

enum  Command {
  REQUEST, MERCHANT, CATEGORIES, CATEGORY,
  MONEY, ITEMS, BUY, SELL,
  VIEW, CANCEL
}
 

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 
 psGUIMerchantMessage (uint32_t clientNum, uint8_t command, csString commandData)
 Constuct a new equipment message to go on the network. More...
 
 psGUIMerchantMessage (uint8_t command, csString commandData)
 
 psGUIMerchantMessage (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

uint8_t command
 
csString commandData
 
- Public Attributes inherited from psMessageCracker
int filterNumber
 
csRef< MsgEntrymsg
 
bool valid
 

Additional Inherited Members

- Static Public Attributes inherited from psMessageCracker
static MsgHandlermsghandler
 

Detailed Description

GUI Exchange Message.

This message is used to manage the player exchange window. The client/server exchange manger will deal with these messages. GUI Merchant Message

This message is used to manage the player merchant window. The client/server NPC manger will deal with these messages.

Definition at line 2027 of file messages.h.

Member Enumeration Documentation

Enumerator
REQUEST 
MERCHANT 
CATEGORIES 
CATEGORY 
MONEY 
ITEMS 
BUY 
SELL 
VIEW 
CANCEL 

Definition at line 2030 of file messages.h.

Constructor & Destructor Documentation

psGUIMerchantMessage::psGUIMerchantMessage ( uint32_t  clientNum,
uint8_t  command,
csString  commandData 
)

Constuct a new equipment message to go on the network.

This will build any of the GUI exchange message needed in a player item exchange.

Parameters
clientNumClient destination.
commandOne of REQUEST, EXCHANGE, INVENTORY, OFFERING or RECEIVING
commandDataXML string with command data
psGUIMerchantMessage::psGUIMerchantMessage ( uint8_t  command,
csString  commandData 
)
psGUIMerchantMessage::psGUIMerchantMessage ( MsgEntry message)

Crack this message off the network.

Member Function Documentation

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

uint8_t psGUIMerchantMessage::command

Definition at line 2073 of file messages.h.

csString psGUIMerchantMessage::commandData

Definition at line 2074 of file messages.h.


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