summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-24 12:17:35 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-24 12:17:35 +0300
commit1814650ad896a0f9684d279fa5843771e767748a (patch)
tree5387bdca11a76198c7be67b7009cacd9fc31b0fb /src
parentd6fbc25d16e3f96a20c492904a0dab16f8b4d8fb (diff)
downloadmanaverse-1814650ad896a0f9684d279fa5843771e767748a.tar.gz
manaverse-1814650ad896a0f9684d279fa5843771e767748a.tar.bz2
manaverse-1814650ad896a0f9684d279fa5843771e767748a.tar.xz
manaverse-1814650ad896a0f9684d279fa5843771e767748a.zip
add final keyword to net files.
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/adminhandler.h22
-rw-r--r--src/net/ea/buysellhandler.h10
-rw-r--r--src/net/ea/charserverhandler.h14
-rw-r--r--src/net/ea/chathandler.h2
-rw-r--r--src/net/ea/gamehandler.h10
-rw-r--r--src/net/ea/gui/guildtab.h14
-rw-r--r--src/net/ea/gui/partytab.h14
-rw-r--r--src/net/ea/guildhandler.h10
-rw-r--r--src/net/ea/inventoryhandler.h15
-rw-r--r--src/net/ea/loginhandler.h22
-rw-r--r--src/net/ea/npchandler.h6
-rw-r--r--src/net/ea/partyhandler.h10
-rw-r--r--src/net/ea/playerhandler.h16
-rw-r--r--src/net/ea/tradehandler.h3
-rw-r--r--src/net/eathena/adminhandler.h10
-rw-r--r--src/net/eathena/beinghandler.h8
-rw-r--r--src/net/eathena/charserverhandler.h14
-rw-r--r--src/net/eathena/chathandler.h16
-rw-r--r--src/net/eathena/gamehandler.h18
-rw-r--r--src/net/eathena/generalhandler.h18
-rw-r--r--src/net/eathena/guildhandler.h26
-rw-r--r--src/net/eathena/inventoryhandler.h19
-rw-r--r--src/net/eathena/itemhandler.h2
-rw-r--r--src/net/eathena/loginhandler.h19
-rw-r--r--src/net/eathena/npchandler.h25
-rw-r--r--src/net/eathena/partyhandler.h22
-rw-r--r--src/net/eathena/playerhandler.h26
-rw-r--r--src/net/eathena/skillhandler.h8
-rw-r--r--src/net/eathena/tradehandler.h17
-rw-r--r--src/net/tmwa/adminhandler.h10
-rw-r--r--src/net/tmwa/beinghandler.h6
-rw-r--r--src/net/tmwa/charserverhandler.h14
-rw-r--r--src/net/tmwa/chathandler.h14
-rw-r--r--src/net/tmwa/gamehandler.h18
-rw-r--r--src/net/tmwa/generalhandler.h18
-rw-r--r--src/net/tmwa/guildhandler.h26
-rw-r--r--src/net/tmwa/inventoryhandler.h19
-rw-r--r--src/net/tmwa/itemhandler.h2
-rw-r--r--src/net/tmwa/loginhandler.h19
-rw-r--r--src/net/tmwa/npchandler.h25
-rw-r--r--src/net/tmwa/partyhandler.h22
-rw-r--r--src/net/tmwa/playerhandler.h26
-rw-r--r--src/net/tmwa/questhandler.h2
-rw-r--r--src/net/tmwa/skillhandler.h8
-rw-r--r--src/net/tmwa/tradehandler.h17
45 files changed, 342 insertions, 320 deletions
diff --git a/src/net/ea/adminhandler.h b/src/net/ea/adminhandler.h
index 8a2697584..fc49b0a2c 100644
--- a/src/net/ea/adminhandler.h
+++ b/src/net/ea/adminhandler.h
@@ -41,32 +41,32 @@ class AdminHandler : public Net::AdminHandler
virtual ~AdminHandler()
{ }
- virtual void kickName(const std::string &name) const override;
+ virtual void kickName(const std::string &name) const override final;
- virtual void ban(const int playerId) const override;
+ virtual void ban(const int playerId) const override final;
- virtual void banName(const std::string &name) const override;
+ virtual void banName(const std::string &name) const override final;
- virtual void unban(const int playerId) const override;
+ virtual void unban(const int playerId) const override final;
- virtual void unbanName(const std::string &name) const override;
+ virtual void unbanName(const std::string &name) const override final;
virtual void mute(const int playerId, const int type,
- const int limit) const override;
+ const int limit) const override final;
virtual void warp(const std::string &map,
- const int x, const int y) const override;
+ const int x, const int y) const override final;
void gotoName(const std::string &name) const;
- void recallName(const std::string &name) const override;
+ void recallName(const std::string &name) const override final;
- void reviveName(const std::string &name) const override;
+ void reviveName(const std::string &name) const override final;
- void ipcheckName(const std::string &name) const override;
+ void ipcheckName(const std::string &name) const override final;
void createItems(const int id, const int color,
- const int amount) const override;
+ const int amount) const override final;
};
} // namespace Ea
diff --git a/src/net/ea/buysellhandler.h b/src/net/ea/buysellhandler.h
index 87bed3d83..7635f4f2c 100644
--- a/src/net/ea/buysellhandler.h
+++ b/src/net/ea/buysellhandler.h
@@ -37,17 +37,19 @@ class BuySellHandler : public Net::BuySellHandler
A_DELETE_COPY(BuySellHandler)
- virtual void requestSellList(const std::string &nick) const override;
+ virtual void requestSellList(const std::string &nick)
+ const override final;
- virtual void requestBuyList(const std::string &nick) const override;
+ virtual void requestBuyList(const std::string &nick)
+ const override final;
virtual void sendBuyRequest(const std::string &nick,
const ShopItem *const item,
- const int amount) const override;
+ const int amount) const override final;
virtual void sendSellRequest(const std::string &nick,
const ShopItem *const item,
- const int amount) const override;
+ const int amount) const override final;
virtual void processNpcBuySellChoice(Net::MessageIn &msg);
diff --git a/src/net/ea/charserverhandler.h b/src/net/ea/charserverhandler.h
index 01012353f..004dde8c4 100644
--- a/src/net/ea/charserverhandler.h
+++ b/src/net/ea/charserverhandler.h
@@ -41,7 +41,7 @@ class CharServerHandler : public Net::CharServerHandler
A_DELETE_COPY(CharServerHandler)
virtual void setCharSelectDialog(CharSelectDialog *const window)
- override;
+ override final;
/**
* Sets the character create dialog. The handler will clean up this
@@ -49,15 +49,15 @@ class CharServerHandler : public Net::CharServerHandler
* the dialog when a new character failed to be created.
*/
virtual void setCharCreateDialog(CharCreateDialog *const window)
- override;
+ override final;
- virtual void requestCharacters() override;
+ virtual void requestCharacters() override final;
- virtual unsigned int baseSprite() const override A_WARN_UNUSED;
+ virtual unsigned int baseSprite() const override final A_WARN_UNUSED;
- virtual unsigned int hairSprite() const override A_WARN_UNUSED;
+ virtual unsigned int hairSprite() const override final A_WARN_UNUSED;
- virtual unsigned int maxSprite() const override A_WARN_UNUSED;
+ virtual unsigned int maxSprite() const override final A_WARN_UNUSED;
virtual void connect() = 0;
@@ -80,7 +80,7 @@ class CharServerHandler : public Net::CharServerHandler
Network *const network,
ServerInfo &mapServer) const;
- virtual void clear() override;
+ virtual void clear() override final;
protected:
CharServerHandler();
diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h
index cde416762..124cc41fb 100644
--- a/src/net/ea/chathandler.h
+++ b/src/net/ea/chathandler.h
@@ -39,7 +39,7 @@ class ChatHandler : public Net::ChatHandler
A_DELETE_COPY(ChatHandler)
void me(const std::string &text,
- const std::string &channel) const override;
+ const std::string &channel) const override final;
virtual void processWhisperResponse(Net::MessageIn &msg);
diff --git a/src/net/ea/gamehandler.h b/src/net/ea/gamehandler.h
index 559a9a860..d9ed8cc63 100644
--- a/src/net/ea/gamehandler.h
+++ b/src/net/ea/gamehandler.h
@@ -36,14 +36,14 @@ class GameHandler : public Net::GameHandler
A_DELETE_COPY(GameHandler)
- virtual void who() const override;
+ virtual void who() const override final;
- virtual bool removeDeadBeings() const override A_WARN_UNUSED
+ virtual bool removeDeadBeings() const override final A_WARN_UNUSED
{ return true; }
virtual void setMap(const std::string &map);
- virtual bool canUseMagicBar() const override A_WARN_UNUSED
+ virtual bool canUseMagicBar() const override final A_WARN_UNUSED
{ return true; }
virtual void processMapLogin(Net::MessageIn &msg) const;
@@ -54,9 +54,9 @@ class GameHandler : public Net::GameHandler
virtual void processMapQuitResponse(Net::MessageIn &msg) const;
- virtual void clear() override;
+ virtual void clear() override final;
- virtual void initEngines() const override;
+ virtual void initEngines() const override final;
protected:
std::string mMap;
diff --git a/src/net/ea/gui/guildtab.h b/src/net/ea/gui/guildtab.h
index 5be5c62e0..edc8ca973 100644
--- a/src/net/ea/gui/guildtab.h
+++ b/src/net/ea/gui/guildtab.h
@@ -41,23 +41,23 @@ class GuildTab : public ChatTab, public ConfigListener
virtual ~GuildTab();
bool handleCommand(const std::string &type,
- const std::string &args) override;
+ const std::string &args) override final;
void showHelp() override;
- void saveToLogFile(const std::string &msg) const override;
+ void saveToLogFile(const std::string &msg) const override final;
- int getType() const override A_WARN_UNUSED
+ int getType() const override final A_WARN_UNUSED
{ return ChatTab::TAB_GUILD; }
- void playNewMessageSound() const override;
+ void playNewMessageSound() const override final;
- void optionChanged(const std::string &value) override;
+ void optionChanged(const std::string &value) override final;
protected:
- void handleInput(const std::string &msg) override;
+ void handleInput(const std::string &msg) override final;
- void getAutoCompleteList(StringVect &names) const override;
+ void getAutoCompleteList(StringVect &names) const override final;
};
} // namespace Ea
diff --git a/src/net/ea/gui/partytab.h b/src/net/ea/gui/partytab.h
index 07ffaa919..1ab50a1b7 100644
--- a/src/net/ea/gui/partytab.h
+++ b/src/net/ea/gui/partytab.h
@@ -40,24 +40,24 @@ class PartyTab : public ChatTab, public ConfigListener
virtual ~PartyTab();
- void showHelp() override;
+ void showHelp() override final;
bool handleCommand(const std::string &type,
- const std::string &args) override;
+ const std::string &args) override final;
- int getType() const override A_WARN_UNUSED
+ int getType() const override final A_WARN_UNUSED
{ return ChatTab::TAB_PARTY; }
- void saveToLogFile(const std::string &msg) const override;
+ void saveToLogFile(const std::string &msg) const override final;
- void playNewMessageSound() const override;
+ void playNewMessageSound() const override final;
void optionChanged(const std::string &value);
protected:
- void handleInput(const std::string &msg) override;
+ void handleInput(const std::string &msg) override final;
- virtual void getAutoCompleteList(StringVect&) const override;
+ virtual void getAutoCompleteList(StringVect&) const override final;
};
extern PartyTab *partyTab;
diff --git a/src/net/ea/guildhandler.h b/src/net/ea/guildhandler.h
index 40d6bc8ae..c3f51b81e 100644
--- a/src/net/ea/guildhandler.h
+++ b/src/net/ea/guildhandler.h
@@ -40,13 +40,13 @@ class GuildHandler : public Net::GuildHandler
virtual ~GuildHandler();
void requestAlliance(const int guildId,
- const int otherGuildId) const override;
+ const int otherGuildId) const override final;
void requestAllianceResponse(const int guildId, const int otherGuildId,
- const bool response) const override;
+ const bool response) const override final;
void endAlliance(const int guildId,
- const int otherGuildId) const override;
+ const int otherGuildId) const override final;
virtual void processGuildCreateResponse(Net::MessageIn &msg) const;
@@ -100,9 +100,9 @@ class GuildHandler : public Net::GuildHandler
virtual void processGuildBroken(Net::MessageIn &msg) const;
- void clear() const override;
+ void clear() const override final;
- ChatTab *getTab() const override;
+ ChatTab *getTab() const override final;
protected:
bool showBasicInfo;
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h
index 9f55a3603..d2b579301 100644
--- a/src/net/ea/inventoryhandler.h
+++ b/src/net/ea/inventoryhandler.h
@@ -51,7 +51,7 @@ class EquipBackend : public Equipment::Backend
A_DELETE_COPY(EquipBackend)
- Item *getEquipment(const int index) const override A_WARN_UNUSED
+ Item *getEquipment(const int index) const override final A_WARN_UNUSED
{
int invyIndex = mEquipment[index];
if (invyIndex == -1)
@@ -152,19 +152,20 @@ class InventoryHandler : public Net::InventoryHandler
void clear();
- bool canSplit(const Item *const item) const override A_WARN_UNUSED;
+ bool canSplit(const Item *const item) const override final A_WARN_UNUSED;
void splitItem(const Item *const item,
- const int amount) const override;
+ const int amount) const override final;
- void moveItem(const int oldIndex, const int newIndex) const override;
+ void moveItem(const int oldIndex,
+ const int newIndex) const override final;
- void openStorage(const int type) const override;
+ void openStorage(const int type) const override final;
- size_t getSize(const int type) const override A_WARN_UNUSED;
+ size_t getSize(const int type) const override final A_WARN_UNUSED;
int convertFromServerSlot(const int serverSlot)
- const override A_WARN_UNUSED;
+ const override final A_WARN_UNUSED;
void pushPickup(const int floorId)
{ mSentPickups.push(floorId); }
diff --git a/src/net/ea/loginhandler.h b/src/net/ea/loginhandler.h
index d1994f73d..a0d6ad288 100644
--- a/src/net/ea/loginhandler.h
+++ b/src/net/ea/loginhandler.h
@@ -45,37 +45,39 @@ class LoginHandler : public Net::LoginHandler
int supportedOptionalActions() const override A_WARN_UNUSED
{ return SetGenderOnRegister; }
- virtual bool isRegistrationEnabled() const override A_WARN_UNUSED;
+ virtual bool isRegistrationEnabled() const override final A_WARN_UNUSED;
- virtual void getRegistrationDetails() const override;
+ virtual void getRegistrationDetails() const override final;
virtual unsigned int getMaxPasswordLength() const
- override A_WARN_UNUSED
+ override A_WARN_UNUSED
{ return 24; }
- virtual void loginAccount(LoginData *const loginData) const override;
+ virtual void loginAccount(LoginData *const loginData)
+ const override final;
virtual void chooseServer(const unsigned int server) const override;
virtual void registerAccount(LoginData *const loginData)
- const override;
+ const override final;
- virtual const Worlds &getWorlds() const override A_WARN_UNUSED;
+ virtual const Worlds &getWorlds() const override final A_WARN_UNUSED;
- virtual void clearWorlds() override;
+ virtual void clearWorlds() override final;
virtual ServerInfo *getCharServer() const A_WARN_UNUSED = 0;
const Token &getToken() const A_WARN_UNUSED
{ return mToken; }
- virtual void logout() const override;
+ virtual void logout() const override final;
- virtual void changeEmail(const std::string &email) const override;
+ virtual void changeEmail(const std::string &email)
+ const override final;
virtual void unregisterAccount(const std::string &username,
const std::string &password)
- const override;
+ const override final;
virtual void procecessCharPasswordResponse(Net::MessageIn &msg) const;
diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h
index f67e9b3f3..4eeaac7c0 100644
--- a/src/net/ea/npchandler.h
+++ b/src/net/ea/npchandler.h
@@ -37,11 +37,11 @@ class NpcHandler : public Net::NpcHandler
A_DELETE_COPY(NpcHandler)
void sendLetter(const int npcId, const std::string &recipient,
- const std::string &text) const override;
+ const std::string &text) const override final;
- void startShopping(const int beingId) const override;
+ void startShopping(const int beingId) const override final;
- void endShopping(const int beingId) const override;
+ void endShopping(const int beingId) const override final;
virtual int getNpc(Net::MessageIn &msg,
bool haveLength) A_WARN_UNUSED = 0;
diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h
index 160080215..59efa77b7 100644
--- a/src/net/ea/partyhandler.h
+++ b/src/net/ea/partyhandler.h
@@ -41,19 +41,19 @@ class PartyHandler : public Net::PartyHandler
virtual ~PartyHandler();
- void join(const int partyId) const override;
+ void join(const int partyId) const override final;
- PartyShare getShareExperience() const override A_WARN_UNUSED
+ PartyShare getShareExperience() const override final A_WARN_UNUSED
{ return mShareExp; }
- PartyShare getShareItems() const override A_WARN_UNUSED
+ PartyShare getShareItems() const override final A_WARN_UNUSED
{ return mShareItems; }
void reload() const;
- void clear() const override;
+ void clear() const override final;
- ChatTab *getTab() const override;
+ ChatTab *getTab() const override final;
virtual void processPartyCreate(Net::MessageIn &msg) const;
diff --git a/src/net/ea/playerhandler.h b/src/net/ea/playerhandler.h
index 219ea17f2..3e97994ce 100644
--- a/src/net/ea/playerhandler.h
+++ b/src/net/ea/playerhandler.h
@@ -36,22 +36,22 @@ class PlayerHandler : public Net::PlayerHandler
A_DELETE_COPY(PlayerHandler)
- void decreaseAttribute(const int attr) const override;
+ void decreaseAttribute(const int attr) const override final;
void ignorePlayer(const std::string &player,
- const bool ignore) const override;
+ const bool ignore) const override final;
- void ignoreAll(const bool ignore) const override;
+ void ignoreAll(const bool ignore) const override final;
- bool canUseMagic() const override;
+ bool canUseMagic() const override final;
- bool canCorrectAttributes() const override;
+ bool canCorrectAttributes() const override final;
- Vector getDefaultWalkSpeed() const override A_WARN_UNUSED;
+ Vector getDefaultWalkSpeed() const override final A_WARN_UNUSED;
- int getJobLocation() const override A_WARN_UNUSED;
+ int getJobLocation() const override final A_WARN_UNUSED;
- int getAttackLocation() const override A_WARN_UNUSED;
+ int getAttackLocation() const override final A_WARN_UNUSED;
void processWalkResponse(Net::MessageIn &msg) const;
diff --git a/src/net/ea/tradehandler.h b/src/net/ea/tradehandler.h
index 31d0c2c76..2d37ed0c8 100644
--- a/src/net/ea/tradehandler.h
+++ b/src/net/ea/tradehandler.h
@@ -36,7 +36,8 @@ class TradeHandler : public Net::TradeHandler
A_DELETE_COPY(TradeHandler)
- void removeItem(const int slotNum, const int amount) const override;
+ void removeItem(const int slotNum,
+ const int amount) const override final;
void processTradeRequest(Net::MessageIn &msg) const;
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index 395510027..a5ad87364 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -37,15 +37,15 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler
A_DELETE_COPY(AdminHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void announce(const std::string &text) const override;
+ void announce(const std::string &text) const override final;
- void localAnnounce(const std::string &text) const override;
+ void localAnnounce(const std::string &text) const override final;
- void hide(const bool h) const override;
+ void hide(const bool h) const override final;
- void kick(const int playerId) const override;
+ void kick(const int playerId) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h
index 2e002d5f9..ce5288eca 100644
--- a/src/net/eathena/beinghandler.h
+++ b/src/net/eathena/beinghandler.h
@@ -37,14 +37,14 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
A_DELETE_COPY(BeingHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void requestNameById(const int id) const override;
+ void requestNameById(const int id) const override final;
- void undress(Being *const being) const override;
+ void undress(Being *const being) const override final;
void processBeingVisibleOrMove(Net::MessageIn &msg,
- const bool visible) override;
+ const bool visible) override final;
protected:
void processBeingChangeLook(Net::MessageIn &msg,
diff --git a/src/net/eathena/charserverhandler.h b/src/net/eathena/charserverhandler.h
index b922125eb..058644849 100644
--- a/src/net/eathena/charserverhandler.h
+++ b/src/net/eathena/charserverhandler.h
@@ -41,28 +41,28 @@ class CharServerHandler final : public MessageHandler,
A_DELETE_COPY(CharServerHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void chooseCharacter(Net::Character *const character) override;
+ void chooseCharacter(Net::Character *const character) override final;
void newCharacter(const std::string &name, const int slot,
const bool gender, const int hairstyle,
const int hairColor, const unsigned char race,
const unsigned char look,
- const std::vector<int> &stats) const override;
+ const std::vector<int> &stats) const override final;
- void deleteCharacter(Net::Character *const character) override;
+ void deleteCharacter(Net::Character *const character) override final;
- void switchCharacter() const override;
+ void switchCharacter() const override final;
- void connect() override;
+ void connect() override final;
void processCharLogin(Net::MessageIn &msg);
protected:
void readPlayerData(Net::MessageIn &msg,
Net::Character *const character,
- const bool) const override;
+ const bool) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h
index d97ca9d8d..9e6f1608d 100644
--- a/src/net/eathena/chathandler.h
+++ b/src/net/eathena/chathandler.h
@@ -38,23 +38,23 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
A_DELETE_COPY(ChatHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
void talk(const std::string &text,
- const std::string &channel) const override;
+ const std::string &channel) const override final;
- void talkRaw(const std::string &text) const override;
+ void talkRaw(const std::string &text) const override final;
void privateMessage(const std::string &recipient,
- const std::string &text) override;
+ const std::string &text) override final;
- void who() const override;
+ void who() const override final;
- void sendRaw(const std::string &args) const override;
+ void sendRaw(const std::string &args) const override final;
- void ignoreAll() const override;
+ void ignoreAll() const override final;
- void unIgnoreAll() const override;
+ void unIgnoreAll() const override final;
static void processRaw(MessageOut &outMsg, const std::string &line);
};
diff --git a/src/net/eathena/gamehandler.h b/src/net/eathena/gamehandler.h
index 2c80496f3..69c12538e 100644
--- a/src/net/eathena/gamehandler.h
+++ b/src/net/eathena/gamehandler.h
@@ -37,25 +37,25 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler
A_DELETE_COPY(GameHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void connect() override;
+ void connect() override final;
- bool isConnected() const override A_WARN_UNUSED;
+ bool isConnected() const override final A_WARN_UNUSED;
- void disconnect() override;
+ void disconnect() override final;
- void quit() const override;
+ void quit() const override final;
- void ping(const int tick) const override;
+ void ping(const int tick) const override final;
- void disconnect2() const override;
+ void disconnect2() const override final;
- void mapLoadedEvent() const override;
+ void mapLoadedEvent() const override final;
void processMapCharId(Net::MessageIn &msg) const;
- bool mustPing() const override A_WARN_UNUSED
+ bool mustPing() const override final A_WARN_UNUSED
{ return true; }
};
diff --git a/src/net/eathena/generalhandler.h b/src/net/eathena/generalhandler.h
index 0af154695..5da041dfc 100644
--- a/src/net/eathena/generalhandler.h
+++ b/src/net/eathena/generalhandler.h
@@ -40,23 +40,23 @@ class GeneralHandler final : public MessageHandler,
~GeneralHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void load() override;
+ void load() override final;
- void reload() override;
+ void reload() override final;
- void unload() override;
+ void unload() override final;
- void flushNetwork() override;
+ void flushNetwork() override final;
- void clearHandlers() override;
+ void clearHandlers() override final;
- void reloadPartially() const override;
+ void reloadPartially() const override final;
- void gameStarted() const override;
+ void gameStarted() const override final;
- void gameEnded() const override;
+ void gameEnded() const override final;
protected:
MessageHandlerPtr mAdminHandler;
diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h
index f0f6a6504..f8ee35fd6 100644
--- a/src/net/eathena/guildhandler.h
+++ b/src/net/eathena/guildhandler.h
@@ -38,34 +38,36 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
~GuildHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void create(const std::string &name) const override;
+ void create(const std::string &name) const override final;
- void invite(const int guildId, const std::string &name) const override;
+ void invite(const int guildId,
+ const std::string &name) const override final;
void invite(const int guildId,
- const Being *const being) const override;
+ const Being *const being) const override final;
void inviteResponse(const int guildId,
- const bool response) const override;
+ const bool response) const override final;
- void leave(const int guildId) const override;
+ void leave(const int guildId) const override final;
void kick(const GuildMember *const member,
- const std::string &reason) const override;
+ const std::string &reason) const override final;
- void chat(const int guildId, const std::string &text) const override;
+ void chat(const int guildId,
+ const std::string &text) const override final;
- void memberList(const int guildId) const override;
+ void memberList(const int guildId) const override final;
- void info(const int guildId) override;
+ void info(const int guildId) override final;
void changeMemberPostion(const GuildMember *const member,
- const int level) const override;
+ const int level) const override final;
void changeNotice(const int guildId, const std::string &msg1,
- const std::string &msg2) const override;
+ const std::string &msg2) const override final;
};
extern Ea::GuildTab *guildTab;
diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h
index 85c8ae8ab..a5df6ee90 100644
--- a/src/net/eathena/inventoryhandler.h
+++ b/src/net/eathena/inventoryhandler.h
@@ -40,20 +40,23 @@ class InventoryHandler final : public MessageHandler,
~InventoryHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void equipItem(const Item *const item) const override;
+ void equipItem(const Item *const item) const override final;
- void unequipItem(const Item *const item) const override;
+ void unequipItem(const Item *const item) const override final;
- void useItem(const Item *const item) const override;
+ void useItem(const Item *const item) const override final;
- void dropItem(const Item *const item, const int amount) const override;
+ void dropItem(const Item *const item,
+ const int amount) const override final;
- void closeStorage(const int type) const override;
+ void closeStorage(const int type) const override final;
- void moveItem2(const int source, const int slot,
- const int amount, const int destination) const override;
+ void moveItem2(const int source,
+ const int slot,
+ const int amount,
+ const int destination) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/itemhandler.h b/src/net/eathena/itemhandler.h
index 667b2eadb..491985a90 100644
--- a/src/net/eathena/itemhandler.h
+++ b/src/net/eathena/itemhandler.h
@@ -37,7 +37,7 @@ class ItemHandler final : public MessageHandler, public Ea::ItemHandler
A_DELETE_COPY(ItemHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/loginhandler.h b/src/net/eathena/loginhandler.h
index f7c136e39..d8556af63 100644
--- a/src/net/eathena/loginhandler.h
+++ b/src/net/eathena/loginhandler.h
@@ -43,25 +43,26 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
~LoginHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void connect() override;
+ void connect() override final;
- bool isConnected() const override A_WARN_UNUSED;
+ bool isConnected() const override final A_WARN_UNUSED;
- void disconnect() override;
+ void disconnect() override final;
- int supportedOptionalActions() const override A_WARN_UNUSED
+ int supportedOptionalActions() const override final A_WARN_UNUSED
{ return SetGenderOnRegister; }
- unsigned int getMaxPasswordLength() const override A_WARN_UNUSED
+ unsigned int getMaxPasswordLength() const override final A_WARN_UNUSED
{ return 24; }
void changePassword(const std::string &username,
const std::string &oldPassword,
- const std::string &newPassword) const override;
+ const std::string &newPassword)
+ const override final;
- ServerInfo *getCharServer() const override A_WARN_UNUSED;
+ ServerInfo *getCharServer() const override final A_WARN_UNUSED;
void processServerVersion(Net::MessageIn &msg);
@@ -72,7 +73,7 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
private:
void sendLoginRegister(const std::string &username,
const std::string &password,
- const std::string &email) const override;
+ const std::string &email) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/npchandler.h b/src/net/eathena/npchandler.h
index a993982bc..1afa3c7bc 100644
--- a/src/net/eathena/npchandler.h
+++ b/src/net/eathena/npchandler.h
@@ -37,34 +37,35 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler
A_DELETE_COPY(NpcHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void talk(const int npcId) const override;
+ void talk(const int npcId) const override final;
- void nextDialog(const int npcId) const override;
+ void nextDialog(const int npcId) const override final;
- void closeDialog(const int npcId) override;
+ void closeDialog(const int npcId) override final;
void listInput(const int npcId,
- const unsigned char value) const override;
+ const unsigned char value) const override final;
- void integerInput(const int npcId, const int value) const override;
+ void integerInput(const int npcId,
+ const int value) const override final;
void stringInput(const int npcId,
- const std::string &value) const override;
+ const std::string &value) const override final;
- void buy(const int beingId) const override;
+ void buy(const int beingId) const override final;
- void sell(const int beingId) const override;
+ void sell(const int beingId) const override final;
void buyItem(const int beingId, const int itemId,
const unsigned char color,
- const int amount) const override;
+ const int amount) const override final;
void sellItem(const int beingId, const int itemId,
- const int amount) const override;
+ const int amount) const override final;
- int getNpc(Net::MessageIn &msg, const bool haveLength) override;
+ int getNpc(Net::MessageIn &msg, const bool haveLength) override final;
void processNpcCutin(Net::MessageIn &msg, const int npcId) const;
diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h
index e52f763ec..e2ea6ee20 100644
--- a/src/net/eathena/partyhandler.h
+++ b/src/net/eathena/partyhandler.h
@@ -40,28 +40,28 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler
~PartyHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void create(const std::string &name) const override;
+ void create(const std::string &name) const override final;
- void invite(Being *const being) const override;
+ void invite(Being *const being) const override final;
- void invite(const std::string &name) const override;
+ void invite(const std::string &name) const override final;
void inviteResponse(const std::string &inviter,
- const bool accept) const override;
+ const bool accept) const override final;
- void leave() const override;
+ void leave() const override final;
- void kick(Being *const being) const override;
+ void kick(Being *const being) const override final;
- void kick(const std::string &name) const override;
+ void kick(const std::string &name) const override final;
- void chat(const std::string &text) const override;
+ void chat(const std::string &text) const override final;
- void setShareExperience(const PartyShare share) const override;
+ void setShareExperience(const PartyShare share) const override final;
- void setShareItems(const PartyShare share) const override;
+ void setShareItems(const PartyShare share) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index 2de4c148e..86217c980 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -37,27 +37,27 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
A_DELETE_COPY(PlayerHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void attack(const int id, const bool keep) const override;
- void stopAttack() const override;
- void emote(const uint8_t emoteId) const override;
+ void attack(const int id, const bool keep) const override final;
+ void stopAttack() const override final;
+ void emote(const uint8_t emoteId) const override final;
- void increaseAttribute(const int attr) const override;
- void increaseSkill(const uint16_t skillId) const override;
+ void increaseAttribute(const int attr) const override final;
+ void increaseSkill(const uint16_t skillId) const override final;
- void pickUp(const FloorItem *const floorItem) const override;
- void setDirection(const unsigned char direction) const override;
+ void pickUp(const FloorItem *const floorItem) const override final;
+ void setDirection(const unsigned char direction) const override final;
void setDestination(const int x, const int y,
- const int direction) const override;
- void changeAction(const Being::Action &action) const override;
- void updateStatus(const uint8_t status) const override;
+ const int direction) const override final;
+ void changeAction(const Being::Action &action) const override final;
+ void updateStatus(const uint8_t status) const override final;
void processPlayerShortcuts(Net::MessageIn &msg) const;
void processPlayerShowEquip(Net::MessageIn &msg) const;
- void requestOnlineList() const override;
- void respawn() const override;
+ void requestOnlineList() const override final;
+ void respawn() const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index c404527c8..057926504 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -37,15 +37,15 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
A_DELETE_COPY(SkillHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
void useBeing(const int id, const int level,
- const int beingId) const override;
+ const int beingId) const override final;
void usePos(const int id, const int level,
- const int x, const int y) const override;
+ const int x, const int y) const override final;
- void useMap(const int id, const std::string &map) const override;
+ void useMap(const int id, const std::string &map) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/tradehandler.h b/src/net/eathena/tradehandler.h
index 831956601..ddaa3d1f8 100644
--- a/src/net/eathena/tradehandler.h
+++ b/src/net/eathena/tradehandler.h
@@ -37,21 +37,22 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler
A_DELETE_COPY(TradeHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void request(const Being *const being) const override;
+ void request(const Being *const being) const override final;
- void respond(const bool accept) const override;
+ void respond(const bool accept) const override final;
- void addItem(const Item *const item, const int amount) const override;
+ void addItem(const Item *const item,
+ const int amount) const override final;
- void setMoney(const int amount) const override;
+ void setMoney(const int amount) const override final;
- void confirm() const override;
+ void confirm() const override final;
- void finish() const override;
+ void finish() const override final;
- void cancel() const override;
+ void cancel() const override final;
};
} // namespace EAthena
diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h
index 1f339e485..72c23cc4a 100644
--- a/src/net/tmwa/adminhandler.h
+++ b/src/net/tmwa/adminhandler.h
@@ -37,15 +37,15 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler
A_DELETE_COPY(AdminHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void announce(const std::string &text) const override;
+ void announce(const std::string &text) const override final;
- void localAnnounce(const std::string &text) const override;
+ void localAnnounce(const std::string &text) const override final;
- void hide(const bool h) const override;
+ void hide(const bool h) const override final;
- void kick(const int playerId) const override;
+ void kick(const int playerId) const override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h
index 6f863feed..5507fc2f7 100644
--- a/src/net/tmwa/beinghandler.h
+++ b/src/net/tmwa/beinghandler.h
@@ -37,11 +37,11 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
A_DELETE_COPY(BeingHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void requestNameById(const int id) const override;
+ void requestNameById(const int id) const override final;
- void undress(Being *const being) const override;
+ void undress(Being *const being) const override final;
protected:
void processBeingChangeLook(Net::MessageIn &msg,
diff --git a/src/net/tmwa/charserverhandler.h b/src/net/tmwa/charserverhandler.h
index 2f9ac21d6..3a8f75ab0 100644
--- a/src/net/tmwa/charserverhandler.h
+++ b/src/net/tmwa/charserverhandler.h
@@ -41,28 +41,28 @@ class CharServerHandler final : public MessageHandler,
A_DELETE_COPY(CharServerHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void chooseCharacter(Net::Character *const character) override;
+ void chooseCharacter(Net::Character *const character) override final;
void newCharacter(const std::string &name, const int slot,
const bool gender, const int hairstyle,
const int hairColor, const unsigned char race,
const unsigned char look,
- const std::vector<int> &stats) const override;
+ const std::vector<int> &stats) const override final;
- void deleteCharacter(Net::Character *const character) override;
+ void deleteCharacter(Net::Character *const character) override final;
- void switchCharacter() const override;
+ void switchCharacter() const override final;
- void connect() override;
+ void connect() override final;
void processCharLogin(Net::MessageIn &msg);
protected:
void readPlayerData(Net::MessageIn &msg,
Net::Character *const character,
- const bool withColors) const override;
+ const bool withColors) const override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h
index 6da3a8eef..a21c0afe1 100644
--- a/src/net/tmwa/chathandler.h
+++ b/src/net/tmwa/chathandler.h
@@ -38,23 +38,23 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
A_DELETE_COPY(ChatHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
void talk(const std::string &text,
- const std::string &channel) const override;
+ const std::string &channel) const override final;
- void talkRaw(const std::string &text) const override;
+ void talkRaw(const std::string &text) const override final;
void privateMessage(const std::string &recipient,
- const std::string &text) override;
+ const std::string &text) override final;
- void who() const override;
+ void who() const override final;
void sendRaw(const std::string &args) const;
- void ignoreAll() const override;
+ void ignoreAll() const override final;
- void unIgnoreAll() const override;
+ void unIgnoreAll() const override final;
static void processRaw(MessageOut &outMsg, const std::string &line);
};
diff --git a/src/net/tmwa/gamehandler.h b/src/net/tmwa/gamehandler.h
index b38db877c..6be2084d7 100644
--- a/src/net/tmwa/gamehandler.h
+++ b/src/net/tmwa/gamehandler.h
@@ -37,23 +37,23 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler
A_DELETE_COPY(GameHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void connect() override;
+ void connect() override final;
- bool isConnected() const override A_WARN_UNUSED;
+ bool isConnected() const override final A_WARN_UNUSED;
- void disconnect() override;
+ void disconnect() override final;
- void quit() const override;
+ void quit() const override final;
- void ping(const int tick) const override;
+ void ping(const int tick) const override final;
- void disconnect2() const override;
+ void disconnect2() const override final;
- void mapLoadedEvent() const override;
+ void mapLoadedEvent() const override final;
- bool mustPing() const override A_WARN_UNUSED
+ bool mustPing() const override final A_WARN_UNUSED
{ return false; }
};
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index 47ca0081a..24b17c6f5 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -40,23 +40,23 @@ class GeneralHandler final : public MessageHandler,
~GeneralHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void load() override;
+ void load() override final;
- void reload() override;
+ void reload() override final;
- void unload() override;
+ void unload() override final;
- void flushNetwork() override;
+ void flushNetwork() override final;
- void clearHandlers() override;
+ void clearHandlers() override final;
- void reloadPartially() const override;
+ void reloadPartially() const override final;
- void gameStarted() const override;
+ void gameStarted() const override final;
- void gameEnded() const override;
+ void gameEnded() const override final;
protected:
MessageHandlerPtr mAdminHandler;
diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h
index d2238ff83..ea4c0f182 100644
--- a/src/net/tmwa/guildhandler.h
+++ b/src/net/tmwa/guildhandler.h
@@ -38,34 +38,36 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
~GuildHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void create(const std::string &name) const override;
+ void create(const std::string &name) const override final;
- void invite(const int guildId, const std::string &name) const override;
+ void invite(const int guildId,
+ const std::string &name) const override final;
void invite(const int guildId,
- const Being *const being) const override;
+ const Being *const being) const override final;
void inviteResponse(const int guildId,
- const bool response) const override;
+ const bool response) const override final;
- void leave(const int guildId) const override;
+ void leave(const int guildId) const override final;
void kick(const GuildMember *const member,
- const std::string &reason) const override;
+ const std::string &reason) const override final;
- void chat(const int guildId, const std::string &text) const override;
+ void chat(const int guildId,
+ const std::string &text) const override final;
- void memberList(const int guildId) const override;
+ void memberList(const int guildId) const override final;
- void info(const int guildId) override;
+ void info(const int guildId) override final;
void changeMemberPostion(const GuildMember *const member,
- const int level) const override;
+ const int level) const override final;
void changeNotice(const int guildId, const std::string &msg1,
- const std::string &msg2) const override;
+ const std::string &msg2) const override final;
};
extern Ea::GuildTab *guildTab;
diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h
index 9d7e877cf..a23e05b93 100644
--- a/src/net/tmwa/inventoryhandler.h
+++ b/src/net/tmwa/inventoryhandler.h
@@ -40,20 +40,23 @@ class InventoryHandler final : public MessageHandler,
~InventoryHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void equipItem(const Item *const item) const override;
+ void equipItem(const Item *const item) const override final;
- void unequipItem(const Item *const item) const override;
+ void unequipItem(const Item *const item) const override final;
- void useItem(const Item *const item) const override;
+ void useItem(const Item *const item) const override final;
- void dropItem(const Item *const item, const int amount) const override;
+ void dropItem(const Item *const item,
+ const int amount) const override final;
- void closeStorage(const int type) const override;
+ void closeStorage(const int type) const override final;
- void moveItem2(const int source, const int slot,
- const int amount, const int destination) const override;
+ void moveItem2(const int source,
+ const int slot,
+ const int amount,
+ const int destination) const override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/itemhandler.h b/src/net/tmwa/itemhandler.h
index d77ae64b7..e377e18a7 100644
--- a/src/net/tmwa/itemhandler.h
+++ b/src/net/tmwa/itemhandler.h
@@ -37,7 +37,7 @@ class ItemHandler final : public MessageHandler, public Ea::ItemHandler
A_DELETE_COPY(ItemHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/loginhandler.h b/src/net/tmwa/loginhandler.h
index 30a0bd286..8eabcfe56 100644
--- a/src/net/tmwa/loginhandler.h
+++ b/src/net/tmwa/loginhandler.h
@@ -41,24 +41,25 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
~LoginHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void connect() override;
+ void connect() override final;
- bool isConnected() const override A_WARN_UNUSED;
+ bool isConnected() const override final A_WARN_UNUSED;
- void disconnect() override;
+ void disconnect() override final;
- int supportedOptionalActions() const override A_WARN_UNUSED;
+ int supportedOptionalActions() const override final A_WARN_UNUSED;
- unsigned int getMaxPasswordLength() const override A_WARN_UNUSED
+ unsigned int getMaxPasswordLength() const override final A_WARN_UNUSED
{ return 24; }
void changePassword(const std::string &username,
const std::string &oldPassword,
- const std::string &newPassword) const override;
+ const std::string &newPassword)
+ const override final;
- ServerInfo *getCharServer() const override A_WARN_UNUSED;
+ ServerInfo *getCharServer() const override final A_WARN_UNUSED;
void processServerVersion(Net::MessageIn &msg);
@@ -69,7 +70,7 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
private:
void sendLoginRegister(const std::string &username,
const std::string &password,
- const std::string &email) const override;
+ const std::string &email) const override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/npchandler.h b/src/net/tmwa/npchandler.h
index 52d77b769..50238cdf7 100644
--- a/src/net/tmwa/npchandler.h
+++ b/src/net/tmwa/npchandler.h
@@ -37,35 +37,36 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler
A_DELETE_COPY(NpcHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void talk(const int npcId) const override;
+ void talk(const int npcId) const override final;
- void nextDialog(const int npcId) const override;
+ void nextDialog(const int npcId) const override final;
- void closeDialog(const int npcId) override;
+ void closeDialog(const int npcId) override final;
void listInput(const int npcId,
- const unsigned char value) const override;
+ const unsigned char value) const override final;
- void integerInput(const int npcId, const int value) const override;
+ void integerInput(const int npcId,
+ const int value) const override final;
void stringInput(const int npcId,
- const std::string &value) const override;
+ const std::string &value) const override final;
- void buy(const int beingId) const override;
+ void buy(const int beingId) const override final;
- void sell(const int beingId) const override;
+ void sell(const int beingId) const override final;
void buyItem(const int beingId, const int itemId,
const unsigned char color,
- const int amount) const override;
+ const int amount) const override final;
void sellItem(const int beingId, const int itemId,
- const int amount) const override;
+ const int amount) const override final;
int getNpc(Net::MessageIn &msg,
- const bool haveLength) override A_WARN_UNUSED;
+ const bool haveLength) override final A_WARN_UNUSED;
void processNpcCommand(Net::MessageIn &msg, const int npcId);
diff --git a/src/net/tmwa/partyhandler.h b/src/net/tmwa/partyhandler.h
index d403b557a..586f866cc 100644
--- a/src/net/tmwa/partyhandler.h
+++ b/src/net/tmwa/partyhandler.h
@@ -40,28 +40,28 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler
~PartyHandler();
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void create(const std::string &name) const override;
+ void create(const std::string &name) const override final;
- void invite(Being *const being) const override;
+ void invite(Being *const being) const override final;
- void invite(const std::string &name) const override;
+ void invite(const std::string &name) const override final;
void inviteResponse(const std::string &inviter,
- const bool accept) const override;
+ const bool accept) const override final;
- void leave() const override;
+ void leave() const override final;
- void kick(Being *const being) const override;
+ void kick(Being *const being) const override final;
- void kick(const std::string &name) const override;
+ void kick(const std::string &name) const override final;
- void chat(const std::string &text) const override;
+ void chat(const std::string &text) const override final;
- void setShareExperience(const PartyShare share) const override;
+ void setShareExperience(const PartyShare share) const override final;
- void setShareItems(const PartyShare share) const override;
+ void setShareItems(const PartyShare share) const override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h
index aa6cf1d94..102151b05 100644
--- a/src/net/tmwa/playerhandler.h
+++ b/src/net/tmwa/playerhandler.h
@@ -37,25 +37,25 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
A_DELETE_COPY(PlayerHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void attack(const int id, const bool keep) const override;
- void stopAttack() const override;
- void emote(const uint8_t emoteId) const override;
+ void attack(const int id, const bool keep) const override final;
+ void stopAttack() const override final;
+ void emote(const uint8_t emoteId) const override final;
- void increaseAttribute(const int attr) const override;
- void increaseSkill(const uint16_t skillId) const override;
+ void increaseAttribute(const int attr) const override final;
+ void increaseSkill(const uint16_t skillId) const override final;
- void pickUp(const FloorItem *const floorItem) const override;
- void setDirection(const unsigned char direction) const override;
+ void pickUp(const FloorItem *const floorItem) const override final;
+ void setDirection(const unsigned char direction) const override final;
void setDestination(const int x, const int y,
- const int direction) const override;
- void changeAction(const Being::Action &action) const override;
+ const int direction) const override final;
+ void changeAction(const Being::Action &action) const override final;
void processOnlineList(Net::MessageIn &msg) const;
- void requestOnlineList() const override;
- void updateStatus(const uint8_t status) const override;
+ void requestOnlineList() const override final;
+ void updateStatus(const uint8_t status) const override final;
- void respawn() const override;
+ void respawn() const override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/questhandler.h b/src/net/tmwa/questhandler.h
index 80d39e67b..a92b601c3 100644
--- a/src/net/tmwa/questhandler.h
+++ b/src/net/tmwa/questhandler.h
@@ -33,7 +33,7 @@ class QuestHandler final : public MessageHandler
A_DELETE_COPY(QuestHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
void processSetQuestVar(Net::MessageIn &msg) const;
diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h
index 129331ff3..1b951df96 100644
--- a/src/net/tmwa/skillhandler.h
+++ b/src/net/tmwa/skillhandler.h
@@ -37,15 +37,15 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
A_DELETE_COPY(SkillHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
void useBeing(const int id, const int level,
- const int beingId) const override;
+ const int beingId) const override final;
void usePos(const int id, const int level,
- const int x, const int y) const override;
+ const int x, const int y) const override final;
- void useMap(const int id, const std::string &map) const override;
+ void useMap(const int id, const std::string &map) const override final;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/tradehandler.h b/src/net/tmwa/tradehandler.h
index 9e6137f87..c3367ee73 100644
--- a/src/net/tmwa/tradehandler.h
+++ b/src/net/tmwa/tradehandler.h
@@ -37,21 +37,22 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler
A_DELETE_COPY(TradeHandler)
- void handleMessage(Net::MessageIn &msg) override;
+ void handleMessage(Net::MessageIn &msg) override final;
- void request(const Being *const being) const override;
+ void request(const Being *const being) const override final;
- void respond(const bool accept) const override;
+ void respond(const bool accept) const override final;
- void addItem(const Item *const item, const int amount) const override;
+ void addItem(const Item *const item,
+ const int amount) const override final;
- void setMoney(const int amount) const override;
+ void setMoney(const int amount) const override final;
- void confirm() const override;
+ void confirm() const override final;
- void finish() const override;
+ void finish() const override final;
- void cancel() const override;
+ void cancel() const override final;
};
} // namespace TmwAthena