summaryrefslogtreecommitdiff
path: root/src/net/eathena
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/net/eathena
parentd6fbc25d16e3f96a20c492904a0dab16f8b4d8fb (diff)
downloadmanaplus-1814650ad896a0f9684d279fa5843771e767748a.tar.gz
manaplus-1814650ad896a0f9684d279fa5843771e767748a.tar.bz2
manaplus-1814650ad896a0f9684d279fa5843771e767748a.tar.xz
manaplus-1814650ad896a0f9684d279fa5843771e767748a.zip
add final keyword to net files.
Diffstat (limited to 'src/net/eathena')
-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
15 files changed, 128 insertions, 120 deletions
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