Planeshift
Public Types | Public Member Functions | Public Attributes

psCharRejectedMessage Class Reference

Opposite of psCharApprovedMessage. More...

#include <charmessages.h>

List of all members.

Public Types

enum  ErrorTypes {
  UNKNOWN, NON_LEGAL_NAME, NON_UNIQUE_NAME, RESERVED_NAME,
  INVALID_CREATION, FAILED_ACCOUNT
}
 

Possible Character Rejection Reasons.

More...

Public Member Functions

 psCharRejectedMessage (uint32_t clientnum, int type=UNKNOWN, const char *msg="Unknown error")
 Constructed on server for the client.
 psCharRejectedMessage (MsgEntry *msg)
 Constructed on client to crack message.
 PSF_DECLARE_MSG_FACTORY ()
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Convert the message into human readable string.

Public Attributes

csString errorMesg
 Holds error message from the server.
int errorType
 The error type ( from enum )

Detailed Description

Opposite of psCharApprovedMessage.

Hands back a type and error message for the client to display.

Definition at line 73 of file charmessages.h.


Member Enumeration Documentation

Possible Character Rejection Reasons.

Enumerator:
UNKNOWN 
NON_LEGAL_NAME 
NON_UNIQUE_NAME 
RESERVED_NAME 
INVALID_CREATION 
FAILED_ACCOUNT 

Definition at line 77 of file charmessages.h.


Constructor & Destructor Documentation

psCharRejectedMessage::psCharRejectedMessage ( uint32_t  clientnum,
int  type = UNKNOWN,
const char *  msg = "Unknown error" 
)

Constructed on server for the client.

psCharRejectedMessage::psCharRejectedMessage ( MsgEntry msg)

Constructed on client to crack message.


Member Function Documentation

psCharRejectedMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psCharRejectedMessage::ToString ( NetBase::AccessPointers accessPointers) [virtual]

Convert 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

Holds error message from the server.

Definition at line 107 of file charmessages.h.

The error type ( from enum )

Definition at line 104 of file charmessages.h.


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