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