summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.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/tmwa/gamehandler.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/tmwa/gamehandler.h')
-rw-r--r--src/net/tmwa/gamehandler.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/net/tmwa/gamehandler.h b/src/net/tmwa/gamehandler.h
index a6bcde0a..8859c9c6 100644
--- a/src/net/tmwa/gamehandler.h
+++ b/src/net/tmwa/gamehandler.h
@@ -39,32 +39,32 @@ class GameHandler : public MessageHandler, public Net::GameHandler,
public:
GameHandler();
- void handleMessage(MessageIn &msg);
+ void handleMessage(MessageIn &msg) override;
- void event(Event::Channel channel, const Event &event);
+ void event(Event::Channel channel, const Event &event) override;
- void connect();
+ void connect() override;
- bool isConnected();
+ bool isConnected() override;
- void disconnect();
+ void disconnect() override;
- void who();
+ void who() override;
- void quit();
+ void quit() override;
- bool removeDeadBeings() const { return true; }
+ bool removeDeadBeings() const override { return true; }
void clear();
void setMap(const std::string map);
/** The tmwAthena protocol is making use of the MP status bar. */
- bool canUseMagicBar() const { return true; }
+ bool canUseMagicBar() const override { return true; }
- int getPickupRange() const;
+ int getPickupRange() const override;
- int getNpcTalkRange() const { return DEFAULT_TILE_LENGTH * 30; }
+ int getNpcTalkRange() const override { return DEFAULT_TILE_LENGTH * 30; }
private:
std::string mMap; ///< Keeps the map filename.