Mana
|
#include <charhandler.h>
Public Member Functions | |
virtual | ~CharHandler ()=default |
virtual void | setCharSelectDialog (CharSelectDialog *window)=0 |
virtual void | setCharCreateDialog (CharCreateDialog *window)=0 |
virtual void | requestCharacters ()=0 |
virtual void | chooseCharacter (Net::Character *character)=0 |
virtual void | newCharacter (const std::string &name, int slot, Gender gender, int hairstyle, int hairColor, const std::vector< int > &stats)=0 |
virtual void | deleteCharacter (Net::Character *character)=0 |
virtual void | switchCharacter ()=0 |
virtual unsigned int | baseSprite () const =0 |
virtual unsigned int | hairSprite () const =0 |
virtual unsigned int | maxSprite () const =0 |
virtual int | getCharCreateMinHairColorId () const |
Returns the min permitted hair color Id at character creation time, or 0 if there is no minimum. | |
virtual int | getCharCreateMaxHairColorId () const =0 |
Returns the max permitted hair color Id at character creation time, or 0 if no limit should be applied. | |
virtual int | getCharCreateMaxHairStyleId () const =0 |
Returns the max permitted hair style Id at character creation time, or 0 if no limit should be applied. | |
Protected Member Functions | |
CharHandler ()=default | |
void | updateCharSelectDialog () |
void | unlockCharSelectDialog () |
Protected Attributes | |
Net::Characters | mCharacters |
The list of available characters. | |
Net::Character * | mSelectedCharacter = nullptr |
The selected character. | |
CharSelectDialog * | mCharSelectDialog = nullptr |
CharCreateDialog * | mCharCreateDialog = nullptr |
Definition at line 51 of file charhandler.h.
|
virtualdefault |
Reimplemented in ManaServ::CharHandler.
|
protecteddefault |
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Returns the max permitted hair color Id at character creation time, or 0 if no limit should be applied.
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Returns the max permitted hair style Id at character creation time, or 0 if no limit should be applied.
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
inlinevirtual |
Returns the min permitted hair color Id at character creation time, or 0 if there is no minimum.
Reimplemented in TmwAthena::CharServerHandler.
Definition at line 82 of file charhandler.h.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
pure virtual |
Implemented in ManaServ::CharHandler, and TmwAthena::CharServerHandler.
|
protected |
Definition at line 33 of file charhandler.cpp.
|
protected |
Definition at line 27 of file charhandler.cpp.
|
protected |
The list of available characters.
Definition at line 103 of file charhandler.h.
|
protected |
Definition at line 109 of file charhandler.h.
|
protected |
Definition at line 108 of file charhandler.h.
|
protected |
The selected character.
Definition at line 106 of file charhandler.h.