summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/partyhandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-07 21:16:24 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-07 21:23:27 -0600
commit73c773adfb8b65e1305242ab55607882a46e71c3 (patch)
tree5b6d767ce2f44e33283f4e78edbb5a08f0c2b52a /src/net/tmwserv/partyhandler.h
parentaefbc69aac9f7c793725153eefce2631555bfd1f (diff)
downloadmana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.gz
mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.bz2
mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.xz
mana-73c773adfb8b65e1305242ab55607882a46e71c3.zip
Implement TMWServ's PartyHandler
Diffstat (limited to 'src/net/tmwserv/partyhandler.h')
-rw-r--r--src/net/tmwserv/partyhandler.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/net/tmwserv/partyhandler.h b/src/net/tmwserv/partyhandler.h
index 66e29b0d..9dad4bbc 100644
--- a/src/net/tmwserv/partyhandler.h
+++ b/src/net/tmwserv/partyhandler.h
@@ -23,16 +23,39 @@
#define NET_TMWSERV_PARTYHANDLER_H
#include "net/messagehandler.h"
+#include "net/partyhandler.h"
#include <string>
-class PartyHandler : public MessageHandler
+namespace TmwServ {
+
+class PartyHandler : public MessageHandler, public Net::PartyHandler
{
public:
PartyHandler();
void handleMessage(MessageIn &msg);
+
+ void create(const std::string &name = "");
+
+ void join(int partyId);
+
+ void invite(Player *player);
+
+ void invite(const std::string &name);
+
+ void inviteResponse(const std::string &inviter, bool accept);
+
+ void leave();
+
+ void kick(int playerId);
+
+ void chat(const std::string &text);
+
+ void requestPartyMembers();
};
+} // namespace TmwServ
+
#endif