#include <charserverhandler.h>
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) |
LocalPlayer * | readPlayerData (MessageIn &msg, int &slot) |
Protected Attributes | |
LockedArray< LocalPlayer * > * | mCharInfo |
CharCreateDialog * | mCharCreateDialog |
TmwServ::CharServerHandler::CharServerHandler | ( | ) |
Definition at line 50 of file charserverhandler.cpp.
void TmwServ::CharServerHandler::handleMessage | ( | MessageIn & | msg | ) | [virtual] |
void TmwServ::CharServerHandler::setCharInfo | ( | LockedArray< LocalPlayer * > * | charInfo | ) | [inline, virtual] |
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] |
void TmwServ::CharServerHandler::chooseCharacter | ( | int | slot, | |
LocalPlayer * | character | |||
) | [virtual] |
void TmwServ::CharServerHandler::newCharacter | ( | const std::string & | name, | |
int | slot, | |||
bool | gender, | |||
int | hairstyle, | |||
int | hairColor, | |||
std::vector< int > | stats | |||
) | [virtual] |
void TmwServ::CharServerHandler::deleteCharacter | ( | int | slot, | |
LocalPlayer * | character | |||
) | [virtual] |
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.
LockedArray<LocalPlayer*>* TmwServ::CharServerHandler::mCharInfo [protected] |
Definition at line 69 of file charserverhandler.h.
Definition at line 70 of file charserverhandler.h.