summaryrefslogtreecommitdiff
path: root/src/net/manaserv/charhandler.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
commit5afe88df2538274859a162ffd63ed52118e80c19 (patch)
treeb610dfd58dc748fd63f49565b2a43eea2316714f /src/net/manaserv/charhandler.h
parent73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff)
downloadmana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz
mana-5afe88df2538274859a162ffd63ed52118e80c19.zip
Apply C++11 fixits
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
Diffstat (limited to 'src/net/manaserv/charhandler.h')
-rw-r--r--src/net/manaserv/charhandler.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/net/manaserv/charhandler.h b/src/net/manaserv/charhandler.h
index d2159204..262d8a01 100644
--- a/src/net/manaserv/charhandler.h
+++ b/src/net/manaserv/charhandler.h
@@ -42,43 +42,43 @@ class CharHandler : public MessageHandler, public Net::CharHandler
public:
CharHandler();
- ~CharHandler();
+ ~CharHandler() override;
- void handleMessage(MessageIn &msg);
+ void handleMessage(MessageIn &msg) override;
- void setCharSelectDialog(CharSelectDialog *window);
+ void setCharSelectDialog(CharSelectDialog *window) override;
/**
* Sets the character create dialog. The handler will clean up this
* dialog when a new character is succesfully created, and will unlock
* the dialog when a new character failed to be created.
*/
- void setCharCreateDialog(CharCreateDialog *window);
+ void setCharCreateDialog(CharCreateDialog *window) override;
- void requestCharacters();
+ void requestCharacters() override;
- void chooseCharacter(Net::Character *character);
+ void chooseCharacter(Net::Character *character) override;
void newCharacter(const std::string &name, int slot,
bool gender, int hairstyle, int hairColor,
- const std::vector<int> &stats);
+ const std::vector<int> &stats) override;
- void deleteCharacter(Net::Character *character);
+ void deleteCharacter(Net::Character *character) override;
- void switchCharacter();
+ void switchCharacter() override;
- unsigned int baseSprite() const;
+ unsigned int baseSprite() const override;
- unsigned int hairSprite() const;
+ unsigned int hairSprite() const override;
- unsigned int maxSprite() const;
+ unsigned int maxSprite() const override;
// No limitation on Manaserv
- int getCharCreateMaxHairColorId() const
+ int getCharCreateMaxHairColorId() const override
{ return 0; }
// No limitation on Manaserv
- int getCharCreateMaxHairStyleId() const
+ int getCharCreateMaxHairStyleId() const override
{ return 0; }
void clear();
@@ -94,7 +94,7 @@ class CharHandler : public MessageHandler, public Net::CharHandler
double mod;
};
- typedef std::map<int, CachedAttrbiute> CachedAttributes;
+ using CachedAttributes = std::map<int, CachedAttrbiute>;
struct CachedCharacterInfo {
int slot;