summaryrefslogtreecommitdiff
path: root/src/net/partyhandler.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 14:54:43 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 15:02:59 +0200
commitd20b79683997990a1b46ac8d4117f9195aa278f2 (patch)
tree8566fe6cd224003100be35743645c948536f26e8 /src/net/partyhandler.h
parent128f908908b77b242b749b27879ba2a9f70a94f6 (diff)
downloadmana-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/partyhandler.h')
-rw-r--r--src/net/partyhandler.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/net/partyhandler.h b/src/net/partyhandler.h
index b58bd5f4..2d61d9cd 100644
--- a/src/net/partyhandler.h
+++ b/src/net/partyhandler.h
@@ -22,32 +22,34 @@
#ifndef PARTYHANDLER_H
#define PARTYHANDLER_H
-#include <iosfwd>
+#include <string>
namespace Net {
+
class PartyHandler
{
public:
- virtual void create(const std::string &name="") {}
+ virtual void create(const std::string &name = "") = 0;
- virtual void join(int partyId) {}
+ virtual void join(int partyId) = 0;
- virtual void invite(int playerId) {}
+ virtual void invite(int playerId) = 0;
- virtual void inviteResponse(bool accept) {}
+ virtual void inviteResponse(bool accept) = 0;
- virtual void leave() {}
+ virtual void leave() = 0;
- virtual void kick(int playerId) {}
+ virtual void kick(int playerId) = 0;
- virtual void chat(const std::string &text) {}
+ virtual void chat(const std::string &text) = 0;
- virtual void partyMembers() {}
+ virtual void requestPartyMembers() = 0;
- // virtual void options() {}
+ // virtual void options() = 0;
- // virtual void message() {}
+ // virtual void message() = 0;
};
-}
+
+} // namespace Net
#endif // PARTYHANDLER_H