ManaPlus
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
Net::CharServerHandler Class Referenceabstract

#include <charserverhandler.h>

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

Public Member Functions

virtual ~CharServerHandler ()
 
virtual void setCharSelectDialog (CharSelectDialog *const window) const =0
 
virtual void setCharCreateDialog (CharCreateDialog *const window) const =0
 
virtual void requestCharacters () 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 baseSprite () const =0
 
virtual unsigned int hairSprite () const =0
 
virtual unsigned int hatSprite () const =0
 
virtual unsigned int maxSprite () const =0
 
virtual void clear () 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
 

Static Public Member Functions

static void updateCharSelectDialog ()
 
static void unlockCharSelectDialog ()
 

Static Public Attributes

static Net::Characters mCharacters
 
static CharSelectDialogmCharSelectDialog = 0
 
static CharCreateDialogmCharCreateDialog = 0
 
static Net::CharactermSelectedCharacter = 0
 

Protected Member Functions

 CharServerHandler ()
 

Detailed Description

Definition at line 45 of file charserverhandler.h.

Constructor & Destructor Documentation

◆ ~CharServerHandler()

virtual Net::CharServerHandler::~CharServerHandler ( )
inlinevirtual

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

Definition at line 50 of file charserverhandler.h.

51  { }

◆ CharServerHandler()

Net::CharServerHandler::CharServerHandler ( )
inlineprotected

Definition at line 119 of file charserverhandler.h.

120  {
121  mCharacters.clear();
122  mSelectedCharacter = nullptr;
123  mCharSelectDialog = nullptr;
124  mCharCreateDialog = nullptr;
125  }
static Net::Character * mSelectedCharacter
static CharSelectDialog * mCharSelectDialog
static Net::Characters mCharacters
static CharCreateDialog * mCharCreateDialog

References mCharacters, mCharCreateDialog, mCharSelectDialog, and mSelectedCharacter.

Member Function Documentation

◆ baseSprite()

virtual unsigned int Net::CharServerHandler::baseSprite ( ) const
pure virtual

Implemented in Ea::CharServerHandler.

Referenced by Being::setSubtype().

◆ changePincode()

virtual void Net::CharServerHandler::changePincode ( const BeingId  accountId,
const std::string &  oldPin,
const std::string &  newPin 
) const
pure virtual

◆ changeSlot()

virtual void Net::CharServerHandler::changeSlot ( const int  oldSlot,
const int  newSlot 
) const
pure virtual

◆ chooseCharacter()

virtual void Net::CharServerHandler::chooseCharacter ( Net::Character *const  character) const
pure virtual

◆ clear()

virtual void Net::CharServerHandler::clear ( ) const
pure virtual

◆ deleteCharacter()

virtual void Net::CharServerHandler::deleteCharacter ( Net::Character *const  character,
const std::string &  email 
) const
pure virtual

◆ hairSprite()

virtual unsigned int Net::CharServerHandler::hairSprite ( ) const
pure virtual

◆ hatSprite()

virtual unsigned int Net::CharServerHandler::hatSprite ( ) const
pure virtual

◆ maxSprite()

virtual unsigned int Net::CharServerHandler::maxSprite ( ) const
pure virtual

◆ newCharacter()

virtual void Net::CharServerHandler::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
pure virtual

◆ ping()

virtual void Net::CharServerHandler::ping ( ) const
pure virtual

◆ renameCharacter()

virtual void Net::CharServerHandler::renameCharacter ( const BeingId  id,
const std::string &  newName 
) const
pure virtual

◆ requestCharacters()

virtual void Net::CharServerHandler::requestCharacters ( ) const
pure virtual

Implemented in Ea::CharServerHandler.

◆ sendCheckPincode()

virtual void Net::CharServerHandler::sendCheckPincode ( const BeingId  accountId,
const std::string &  pin 
) const
pure virtual

◆ setCharCreateDialog()

virtual void Net::CharServerHandler::setCharCreateDialog ( CharCreateDialog *const  window) const
pure virtual

◆ setCharSelectDialog()

virtual void Net::CharServerHandler::setCharSelectDialog ( CharSelectDialog *const  window) const
pure virtual

◆ setNewPincode()

virtual void Net::CharServerHandler::setNewPincode ( const BeingId  accountId,
const std::string &  pin 
) const
pure virtual

◆ switchCharacter()

virtual void Net::CharServerHandler::switchCharacter ( ) const
pure virtual

◆ unlockCharSelectDialog()

void Net::CharServerHandler::unlockCharSelectDialog ( )
static

◆ updateCharSelectDialog()

void Net::CharServerHandler::updateCharSelectDialog ( )
static

Field Documentation

◆ mCharacters

Net::Characters Net::CharServerHandler::mCharacters
static

◆ mCharCreateDialog

CharCreateDialog * Net::CharServerHandler::mCharCreateDialog = 0
static

◆ mCharSelectDialog

CharSelectDialog * Net::CharServerHandler::mCharSelectDialog = 0
static

◆ mSelectedCharacter

Net::Character * Net::CharServerHandler::mSelectedCharacter = 0
static

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