diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 14:54:43 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 15:02:59 +0200 |
commit | d20b79683997990a1b46ac8d4117f9195aa278f2 (patch) | |
tree | 8566fe6cd224003100be35743645c948536f26e8 /src/net/maphandler.h | |
parent | 128f908908b77b242b749b27879ba2a9f70a94f6 (diff) | |
download | mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2 mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.zip |
Some cleanup and renaming
* Removed superfluous 'virtual' keyword in *Handler implementations
* Renamed NPCHandler to NpcHandler
* Renamed InvyHandler to InventoryHandler
* Made all *Handler interface methods pure virtual
* Used forward declarations in net.h
* Renamed {start,end}Shoping to {start,end}Shopping
Diffstat (limited to 'src/net/maphandler.h')
-rw-r--r-- | src/net/maphandler.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/net/maphandler.h b/src/net/maphandler.h index be33e074..80f9183f 100644 --- a/src/net/maphandler.h +++ b/src/net/maphandler.h @@ -25,17 +25,19 @@ #include <iosfwd> namespace Net { + class MapHandler { public: - virtual void connect() {} + virtual void connect() = 0; - virtual void mapLoaded(const std::string &mapName) {} + virtual void mapLoaded(const std::string &mapName) = 0; - virtual void who() {} + virtual void who() = 0; - virtual void quit() {} + virtual void quit() = 0; }; -} + +} // namespace Net #endif // MAPHANDLER_H |