EAthena::CharServerHandler Class Reference

#include <charserverhandler.h>

Inheritance diagram for EAthena::CharServerHandler:

MessageHandler Net::CharHandler

List of all members.


Detailed Description

Deals with incoming messages from the character server.

Definition at line 35 of file charserverhandler.h.


Public Member Functions

 CharServerHandler ()
virtual void handleMessage (MessageIn &msg)
void setCharInfo (LockedArray< LocalPlayer * > *charInfo)
void setCharCreateDialog (CharCreateDialog *window)
 Sets the character create dialog.
void connect (LoginData *loginData)
void chooseCharacter (int slot, LocalPlayer *character)
void newCharacter (const std::string &name, int slot, bool gender, int hairstyle, int hairColor, std::vector< int > stats)
void deleteCharacter (int slot, LocalPlayer *character)

Protected Member Functions

LocalPlayerreadPlayerData (MessageIn &msg, int &slot)

Protected Attributes

LoginDatamLoginData
LockedArray< LocalPlayer * > * mCharInfo
CharCreateDialogmCharCreateDialog

Constructor & Destructor Documentation

EAthena::CharServerHandler::CharServerHandler (  ) 

Definition at line 45 of file charserverhandler.cpp.


Member Function Documentation

void EAthena::CharServerHandler::handleMessage ( MessageIn msg  )  [virtual]

Implements MessageHandler.

Definition at line 62 of file charserverhandler.cpp.

void EAthena::CharServerHandler::setCharInfo ( LockedArray< LocalPlayer * > *  charInfo  )  [inline, virtual]

Implements Net::CharHandler.

Definition at line 42 of file charserverhandler.h.

void EAthena::CharServerHandler::setCharCreateDialog ( CharCreateDialog window  )  [virtual]

Sets the character create dialog.

The handler will clean up this dialog when a new character is succesfully created, and will unlock the dialog when a new character failed to be created.

Implements Net::CharHandler.

Definition at line 216 of file charserverhandler.cpp.

void EAthena::CharServerHandler::connect ( LoginData loginData  )  [virtual]

Implements Net::CharHandler.

Definition at line 235 of file charserverhandler.cpp.

void EAthena::CharServerHandler::chooseCharacter ( int  slot,
LocalPlayer character 
) [virtual]

Implements Net::CharHandler.

Definition at line 252 of file charserverhandler.cpp.

void EAthena::CharServerHandler::newCharacter ( const std::string &  name,
int  slot,
bool  gender,
int  hairstyle,
int  hairColor,
std::vector< int >  stats 
) [virtual]

Implements Net::CharHandler.

Definition at line 258 of file charserverhandler.cpp.

void EAthena::CharServerHandler::deleteCharacter ( int  slot,
LocalPlayer character 
) [virtual]

Implements Net::CharHandler.

Definition at line 272 of file charserverhandler.cpp.

LocalPlayer * EAthena::CharServerHandler::readPlayerData ( MessageIn msg,
int &  slot 
) [protected]

Definition at line 170 of file charserverhandler.cpp.


Member Data Documentation

Definition at line 62 of file charserverhandler.h.

Definition at line 63 of file charserverhandler.h.

Definition at line 64 of file charserverhandler.h.


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

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5