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/ea/partyhandler.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/ea/partyhandler.h')
-rw-r--r-- | src/net/ea/partyhandler.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h index 5db4d43a..df38bd6c 100644 --- a/src/net/ea/partyhandler.h +++ b/src/net/ea/partyhandler.h @@ -24,6 +24,7 @@ #include "net/messagehandler.h" #include "net/net.h" +#include "net/partyhandler.h" class PartyHandler : public MessageHandler, public Net::PartyHandler { @@ -32,21 +33,23 @@ class PartyHandler : public MessageHandler, public Net::PartyHandler ~PartyHandler(); - virtual void handleMessage(MessageIn &msg); + void handleMessage(MessageIn &msg); - virtual void create(const std::string &name=""); + void create(const std::string &name = ""); - virtual void join(int partyId); + void join(int partyId); - virtual void invite(int playerId); + void invite(int playerId); - virtual void inviteResponse(bool accept); + void inviteResponse(bool accept); - virtual void leave(); + void leave(); - virtual void kick(int playerId); + void kick(int playerId); - virtual void chat(const std::string &text); + void chat(const std::string &text); + + void requestPartyMembers(); }; extern PartyHandler *partyHandler; |