TmwServ::CharServerHandler Class Reference

#include <charserverhandler.h>

Inheritance diagram for TmwServ::CharServerHandler:

MessageHandler Net::CharHandler

List of all members.


Detailed Description

Deals with incoming messages related to character selection.

Definition at line 35 of file charserverhandler.h.


Public Member Functions

 CharServerHandler ()
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

void handleCharCreateResponse (MessageIn &msg)
void handleCharSelectResponse (MessageIn &msg)
LocalPlayerreadPlayerData (MessageIn &msg, int &slot)

Protected Attributes

LockedArray< LocalPlayer * > * mCharInfo
CharCreateDialogmCharCreateDialog

Constructor & Destructor Documentation

TmwServ::CharServerHandler::CharServerHandler (  ) 

Definition at line 50 of file charserverhandler.cpp.


Member Function Documentation

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

Implements MessageHandler.

Definition at line 64 of file charserverhandler.cpp.

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

Implements Net::CharHandler.

Definition at line 42 of file charserverhandler.h.

void TmwServ::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 246 of file charserverhandler.cpp.

void TmwServ::CharServerHandler::connect ( LoginData loginData  )  [inline, virtual]

Implements Net::CharHandler.

Definition at line 54 of file charserverhandler.h.

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

Implements Net::CharHandler.

Definition at line 263 of file charserverhandler.cpp.

void TmwServ::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 268 of file charserverhandler.cpp.

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

Implements Net::CharHandler.

Definition at line 282 of file charserverhandler.cpp.

void TmwServ::CharServerHandler::handleCharCreateResponse ( MessageIn msg  )  [protected]

Definition at line 127 of file charserverhandler.cpp.

void TmwServ::CharServerHandler::handleCharSelectResponse ( MessageIn msg  )  [protected]

Definition at line 178 of file charserverhandler.cpp.

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

Definition at line 225 of file charserverhandler.cpp.


Member Data Documentation

Definition at line 69 of file charserverhandler.h.

Definition at line 70 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