ManaPlus
Public Member Functions | Protected Member Functions
Ea::CharServerHandler Class Referenceabstract

#include <charserverhandler.h>

Inheritance diagram for Ea::CharServerHandler:
Net::CharServerHandler EAthena::CharServerHandler TmwAthena::CharServerHandler

Public Member Functions

 ~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
 
virtual void connect () const =0
 
void clear () const
 
- Public Member Functions inherited from Net::CharServerHandler
virtual void setCharCreateDialog (CharCreateDialog *const window) const =0
 
virtual void chooseCharacter (Net::Character *const character) const =0
 
virtual 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 =0
 
virtual void deleteCharacter (Net::Character *const character, const std::string &email) const =0
 
virtual void renameCharacter (const BeingId id, const std::string &newName) const =0
 
virtual void switchCharacter () const =0
 
virtual unsigned int hatSprite () const =0
 
virtual void setNewPincode (const BeingId accountId, const std::string &pin) const =0
 
virtual void sendCheckPincode (const BeingId accountId, const std::string &pin) const =0
 
virtual void changePincode (const BeingId accountId, const std::string &oldPin, const std::string &newPin) const =0
 
virtual void changeSlot (const int oldSlot, const int newSlot) const =0
 
virtual void ping () const =0
 

Protected Member Functions

 CharServerHandler ()
 
- Protected Member Functions inherited from Net::CharServerHandler
 CharServerHandler ()
 

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 CharSelectDialogmCharSelectDialog = 0
 
static CharCreateDialogmCharCreateDialog = 0
 
static Net::CharactermSelectedCharacter = 0
 

Detailed Description

Deals with incoming messages from the character server.

Definition at line 35 of file charserverhandler.h.

Constructor & Destructor Documentation

◆ ~CharServerHandler()

Ea::CharServerHandler::~CharServerHandler ( )
virtual

Reimplemented from Net::CharServerHandler.

Reimplemented in TmwAthena::CharServerHandler, and EAthena::CharServerHandler.

Definition at line 45 of file charserverhandler.cpp.

46 {
47  clear();
48 }

References clear().

◆ CharServerHandler()

Ea::CharServerHandler::CharServerHandler ( )
protected

Definition at line 40 of file charserverhandler.cpp.

Member Function Documentation

◆ baseSprite()

unsigned int Ea::CharServerHandler::baseSprite ( ) const
virtual

Implements Net::CharServerHandler.

Definition at line 62 of file charserverhandler.cpp.

63 {
64  return EA_SPRITE_BASE;
65 }
@ EA_SPRITE_BASE
Definition: eaprotocol.h:29

References EA_SPRITE_BASE.

◆ clear()

void Ea::CharServerHandler::clear ( ) const
virtual

Implements Net::CharServerHandler.

Definition at line 77 of file charserverhandler.cpp.

78 {
80  mCharacters.clear();
81 }
static Net::Characters mCharacters
void delete_all(Container &c)
Definition: dtor.h:56

References delete_all(), and Net::CharServerHandler::mCharacters.

Referenced by ~CharServerHandler().

◆ connect()

virtual void Ea::CharServerHandler::connect ( ) const
pure virtual

◆ hairSprite()

unsigned int Ea::CharServerHandler::hairSprite ( ) const
virtual

Implements Net::CharServerHandler.

Definition at line 67 of file charserverhandler.cpp.

68 {
69  return EA_SPRITE_HAIR_COLOR;
70 }
@ EA_SPRITE_HAIR_COLOR
Definition: eaprotocol.h:35

References EA_SPRITE_HAIR_COLOR.

◆ maxSprite()

unsigned int Ea::CharServerHandler::maxSprite ( ) const
virtual

Implements Net::CharServerHandler.

Definition at line 72 of file charserverhandler.cpp.

73 {
74  return EA_SPRITE_VECTOREND;
75 }
@ EA_SPRITE_VECTOREND
Definition: eaprotocol.h:55

References EA_SPRITE_VECTOREND.

◆ requestCharacters()

void Ea::CharServerHandler::requestCharacters ( ) const
virtual

Implements Net::CharServerHandler.

Definition at line 57 of file charserverhandler.cpp.

58 {
59  connect();
60 }
virtual void connect() const =0

References connect().

◆ setCharSelectDialog()

void Ea::CharServerHandler::setCharSelectDialog ( CharSelectDialog *const  window) const
virtual

The documentation for this class was generated from the following files: