Planeshift
Public Types | Public Member Functions | Public Attributes

psGUIGuildMessage Class Reference

GUI Guild Message. More...

#include <messages.h>

List of all members.

Public Types

enum  Command {
  SUBSCRIBE_GUILD_DATA, UNSUBSCRIBE_GUILD_DATA, SET_ONLINE, GUILD_DATA,
  LEVEL_DATA, MEMBER_DATA, ALLIANCE_DATA, CLOSE_WINDOW,
  NOT_IN_GUILD, SET_LEVEL_RIGHT, SET_MEMBER_POINTS, SET_MAX_GUILD_POINTS,
  SET_MEMBER_PUBLIC_NOTES, SET_MEMBER_PRIVATE_NOTES, SET_GUILD_NOTIFICATION, SET_ALLIANCE_NOTIFICATION
}

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 psGUIGuildMessage (uint32_t command, csString commandData)
 Constuct a new Guild message to go on the network.
 psGUIGuildMessage (uint32_t clientNum, uint32_t command, csString commandData)
 Constuct a new Guild message to go on the network.
 psGUIGuildMessage (MsgEntry *message)
 Crack this message off the network.
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

Public Attributes

uint32_t command
csString commandData

Detailed Description

GUI Guild Message.

This message is used to manage the player guild window. The client psGuildWindow and the server psSpellManger will deal with this messages.

Definition at line 1143 of file messages.h.


Member Enumeration Documentation

Enumerator:
SUBSCRIBE_GUILD_DATA 

Client asks server to send guild data (GUILD_DATA,LEVELS_DATA,MEMBERS_DATA msgs) < and also to send it when it changes.

UNSUBSCRIBE_GUILD_DATA 

Client asks server not to send guild data updates any more.

SET_ONLINE 

Cliens asks server to change 'onlineOnly' attribute of its subscription < server will reply with new MEMBERS_DATA message.

GUILD_DATA 

Server sends client basic data about guild.

LEVEL_DATA 

Server sends client data about guild levels.

MEMBER_DATA 

Server sends client data about guild members.

ALLIANCE_DATA 

Server sends client data about guild alliance.

CLOSE_WINDOW 

server tells client to close GuildWindow

NOT_IN_GUILD 

Server tells client that player is not in a guild < so the guild data cannot be sent.

SET_LEVEL_RIGHT 

Clients changes right for guild level.

SET_MEMBER_POINTS 

Sets the amount of guild points assigned to a member.

SET_MAX_GUILD_POINTS 

Sets the maximum amount of guild points for the guild.

SET_MEMBER_PUBLIC_NOTES 
SET_MEMBER_PRIVATE_NOTES 
SET_GUILD_NOTIFICATION 

Clients asks server to change the guild member login/logout notification setting.

SET_ALLIANCE_NOTIFICATION 

Clients asks server to change the alliance member login/logout notification setting.

Definition at line 1146 of file messages.h.


Constructor & Destructor Documentation

psGUIGuildMessage::psGUIGuildMessage ( uint32_t  command,
csString  commandData 
)

Constuct a new Guild message to go on the network.

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

Parameters:
commandOne of OPEN.
commandDataXML string with command data
psGUIGuildMessage::psGUIGuildMessage ( uint32_t  clientNum,
uint32_t  command,
csString  commandData 
)

Constuct a new Guild message to go on the network.

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

Parameters:
clientNumClient destination.
commandOne of OPEN.
commandDataXML string with command data
psGUIGuildMessage::psGUIGuildMessage ( MsgEntry message)

Crack this message off the network.


Member Function Documentation

psGUIGuildMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psGUIGuildMessage::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 1214 of file messages.h.

Definition at line 1215 of file messages.h.


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