ManaPlus
|
#include <charserverhandler.h>
Public Member Functions | |
CharServerHandler () | |
~CharServerHandler () | |
void | chooseCharacter (Net::Character *const character) const |
void | newCharacter (const std::string &name, const int slot, const GenderT gender, const int hairstyle, const int hairColor, const unsigned char race, const uint16_t look, const std::vector< int > &stats) const |
void | renameCharacter (const BeingId id, const std::string &newName) const |
void | deleteCharacter (Net::Character *const character, const std::string &email) const |
void | switchCharacter () const |
void | connect () const |
void | setNewPincode (const BeingId accountId, const std::string &pin) const |
void | sendCheckPincode (const BeingId accountId, const std::string &pin) const |
void | changePincode (const BeingId accountId, const std::string &oldPin, const std::string &newPin) const |
void | setCharCreateDialog (CharCreateDialog *const window) const |
void | changeSlot (const int oldSlot, const int newSlot) const |
void | ping () const |
unsigned int | hatSprite () const A_CONST |
Public Member Functions inherited from Ea::CharServerHandler | |
void | setCharSelectDialog (CharSelectDialog *const window) const |
void | requestCharacters () const |
unsigned int | baseSprite () const A_CONST |
unsigned int | hairSprite () const A_CONST |
unsigned int | maxSprite () const A_CONST |
void | clear () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Net::CharServerHandler | |
static void | updateCharSelectDialog () |
static void | unlockCharSelectDialog () |
Static Public Attributes inherited from Net::CharServerHandler | |
static Net::Characters | mCharacters |
static CharSelectDialog * | mCharSelectDialog = 0 |
static CharCreateDialog * | mCharCreateDialog = 0 |
static Net::Character * | mSelectedCharacter = 0 |
Protected Member Functions inherited from Ea::CharServerHandler | |
CharServerHandler () | |
Protected Member Functions inherited from Net::CharServerHandler | |
CharServerHandler () | |
Deals with incoming messages from the character server.
Definition at line 35 of file charserverhandler.h.
EAthena::CharServerHandler::CharServerHandler | ( | ) |
Definition at line 50 of file charserverhandler.cpp.
References BeingId_zero, charServerHandler, EAthena::CharServerRecv::mNewName, and EAthena::CharServerRecv::mRenameId.
|
virtual |
Reimplemented from Ea::CharServerHandler.
Definition at line 59 of file charserverhandler.cpp.
References charServerHandler.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 217 of file charserverhandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 237 of file charserverhandler.cpp.
References CAST_S16, and createOutPacket.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 64 of file charserverhandler.cpp.
References CAST_U8, createOutPacket, Net::CharServerHandler::mCharSelectDialog, Net::CharServerHandler::mSelectedCharacter, and Net::Character::slot.
|
virtual |
Implements Ea::CharServerHandler.
Definition at line 164 of file charserverhandler.cpp.
References Token::account_ID, EAthena::charServer, CLIENT_PROTOCOL_VERSION, Ea::Network::connect(), createOutPacket, Ea::Network::disconnect(), Being::genderToInt(), loginHandler, EAthena::Network::mInstance, Token::session_ID1, Token::session_ID2, Token::sex, and Ea::Network::skip().
|
virtual |
Implements Net::CharServerHandler.
Definition at line 141 of file charserverhandler.cpp.
References createOutPacket, Net::Character::dummy, ActorSprite::getId(), and Net::CharServerHandler::mSelectedCharacter.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 252 of file charserverhandler.cpp.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 77 of file charserverhandler.cpp.
References CAST_S16, CAST_U8, createOutPacket, Being::genderToInt(), Net::ServerFeatures::haveCreateCharGender(), Net::ServerFeatures::haveLookSelection(), Net::ServerFeatures::haveRaceSelection(), packetVersion, serverFeatures, serverVersion, and Gender::UNSPECIFIED.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 246 of file charserverhandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 227 of file charserverhandler.cpp.
References createOutPacket, EAthena::CharServerRecv::mNewName, and EAthena::CharServerRecv::mRenameId.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 209 of file charserverhandler.cpp.
References createOutPacket.
|
virtual |
Sets the character create dialog. The handler will clean up this dialog when a new character is successfully created, and will unlock the dialog when a new character failed to be created.
Implements Net::CharServerHandler.
Definition at line 185 of file charserverhandler.cpp.
References loginHandler, Net::CharServerHandler::mCharCreateDialog, CharCreateDialog::setAttributes(), CharCreateDialog::setDefaultGender(), and Token::sex.
Referenced by EAthena::GeneralHandler::reload().
|
virtual |
Implements Net::CharServerHandler.
Definition at line 201 of file charserverhandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::CharServerHandler.
Definition at line 157 of file charserverhandler.cpp.
References createOutPacket.