Mana
|
Deals with incoming messages from the character server. More...
#include <charserverhandler.h>
Public Member Functions | |
CharServerHandler () | |
void | handleMessage (MessageIn &msg) override |
void | setCharSelectDialog (CharSelectDialog *window) override |
void | setCharCreateDialog (CharCreateDialog *window) override |
Sets the character create dialog. | |
void | requestCharacters () override |
void | chooseCharacter (Net::Character *character) override |
void | newCharacter (const std::string &name, int slot, Gender gender, int hairstyle, int hairColor, const std::vector< int > &stats) override |
void | deleteCharacter (Net::Character *character) override |
void | switchCharacter () override |
unsigned int | baseSprite () const override |
unsigned int | hairSprite () const override |
unsigned int | maxSprite () const override |
int | getCharCreateMinHairColorId () const override |
Returns the min permitted hair color Id at character creation time, or 0 if there is no minimum. | |
int | getCharCreateMaxHairColorId () const override |
Returns the max permitted hair color Id at character creation time, or 0 if no limit should be applied. | |
int | getCharCreateMaxHairStyleId () const override |
Returns the max permitted hair style Id at character creation time, or 0 if no limit should be applied. | |
void | connect () |
![]() | |
MessageHandler () | |
~MessageHandler () override | |
void | setNetwork (Network *network) |
![]() | |
virtual | ~CharHandler ()=default |
Static Private Member Functions | |
static void | readPlayerData (MessageIn &msg, Net::Character *character) |
Additional Inherited Members | |
![]() | |
const uint16_t * | handledMessages = _no_messages |
![]() | |
CharHandler ()=default | |
void | updateCharSelectDialog () |
void | unlockCharSelectDialog () |
![]() | |
Network * | mNetwork |
![]() | |
Net::Characters | mCharacters |
The list of available characters. | |
Net::Character * | mSelectedCharacter = nullptr |
The selected character. | |
CharSelectDialog * | mCharSelectDialog = nullptr |
CharCreateDialog * | mCharCreateDialog = nullptr |
Deals with incoming messages from the character server.
Definition at line 35 of file charserverhandler.h.
TmwAthena::CharServerHandler::CharServerHandler | ( | ) |
Definition at line 56 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 355 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 315 of file charserverhandler.cpp.
void TmwAthena::CharServerHandler::connect | ( | ) |
Definition at line 387 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 339 of file charserverhandler.cpp.
|
overridevirtual |
Returns the max permitted hair color Id at character creation time, or 0 if no limit should be applied.
Implements Net::CharHandler.
Definition at line 375 of file charserverhandler.cpp.
|
overridevirtual |
Returns the max permitted hair style Id at character creation time, or 0 if no limit should be applied.
Implements Net::CharHandler.
Definition at line 381 of file charserverhandler.cpp.
|
overridevirtual |
Returns the min permitted hair color Id at character creation time, or 0 if there is no minimum.
Reimplemented from Net::CharHandler.
Definition at line 370 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 360 of file charserverhandler.cpp.
|
overridevirtual |
Implements TmwAthena::MessageHandler.
Definition at line 73 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 365 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 324 of file charserverhandler.cpp.
|
staticprivate |
Definition at line 208 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 310 of file charserverhandler.cpp.
|
overridevirtual |
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 276 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 270 of file charserverhandler.cpp.
|
overridevirtual |
Implements Net::CharHandler.
Definition at line 348 of file charserverhandler.cpp.