Mana
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Net::CharHandler Class Referenceabstract

#include <charhandler.h>

Inheritance diagram for Net::CharHandler:
ManaServ::CharHandler TmwAthena::CharServerHandler

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::CharactermSelectedCharacter = nullptr
 The selected character.
 
CharSelectDialogmCharSelectDialog = nullptr
 
CharCreateDialogmCharCreateDialog = nullptr
 

Detailed Description

Definition at line 51 of file charhandler.h.

Constructor & Destructor Documentation

◆ ~CharHandler()

virtual Net::CharHandler::~CharHandler ( )
virtualdefault

Reimplemented in ManaServ::CharHandler.

◆ CharHandler()

Net::CharHandler::CharHandler ( )
protecteddefault

Member Function Documentation

◆ baseSprite()

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

◆ chooseCharacter()

virtual void Net::CharHandler::chooseCharacter ( Net::Character character)
pure virtual

◆ deleteCharacter()

virtual void Net::CharHandler::deleteCharacter ( Net::Character character)
pure virtual

◆ getCharCreateMaxHairColorId()

virtual int Net::CharHandler::getCharCreateMaxHairColorId ( ) const
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.

◆ getCharCreateMaxHairStyleId()

virtual int Net::CharHandler::getCharCreateMaxHairStyleId ( ) const
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.

◆ getCharCreateMinHairColorId()

virtual int Net::CharHandler::getCharCreateMinHairColorId ( ) const
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.

◆ hairSprite()

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

◆ maxSprite()

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

◆ newCharacter()

virtual void Net::CharHandler::newCharacter ( const std::string &  name,
int  slot,
Gender  gender,
int  hairstyle,
int  hairColor,
const std::vector< int > &  stats 
)
pure virtual

◆ requestCharacters()

virtual void Net::CharHandler::requestCharacters ( )
pure virtual

◆ setCharCreateDialog()

virtual void Net::CharHandler::setCharCreateDialog ( CharCreateDialog window)
pure virtual

◆ setCharSelectDialog()

virtual void Net::CharHandler::setCharSelectDialog ( CharSelectDialog window)
pure virtual

◆ switchCharacter()

virtual void Net::CharHandler::switchCharacter ( )
pure virtual

◆ unlockCharSelectDialog()

void CharHandler::unlockCharSelectDialog ( )
protected

Definition at line 33 of file charhandler.cpp.

◆ updateCharSelectDialog()

void CharHandler::updateCharSelectDialog ( )
protected

Definition at line 27 of file charhandler.cpp.

Member Data Documentation

◆ mCharacters

Net::Characters Net::CharHandler::mCharacters
protected

The list of available characters.

Definition at line 103 of file charhandler.h.

◆ mCharCreateDialog

CharCreateDialog* Net::CharHandler::mCharCreateDialog = nullptr
protected

Definition at line 109 of file charhandler.h.

◆ mCharSelectDialog

CharSelectDialog* Net::CharHandler::mCharSelectDialog = nullptr
protected

Definition at line 108 of file charhandler.h.

◆ mSelectedCharacter

Net::Character* Net::CharHandler::mSelectedCharacter = nullptr
protected

The selected character.

Definition at line 106 of file charhandler.h.


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