summaryrefslogtreecommitdiff
path: root/src/net/manaserv/guildhandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-11-03 18:59:10 -0700
committerJared Adams <jaxad0127@gmail.com>2009-11-03 18:59:10 -0700
commit6ec98a246ee9915cdcc4a58f5de6882e415adc2f (patch)
tree45add22f8dfc85c45910cad41db79c979310c113 /src/net/manaserv/guildhandler.h
parent75dbcb1b780fe3fc2f09cbcdc05f9559446ef482 (diff)
downloadmana-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.tar.gz
mana-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.tar.bz2
mana-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.tar.xz
mana-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.zip
Move ManaServ guild code into GuildHandler
Ad start eAthena's GuildHandler
Diffstat (limited to 'src/net/manaserv/guildhandler.h')
-rw-r--r--src/net/manaserv/guildhandler.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/net/manaserv/guildhandler.h b/src/net/manaserv/guildhandler.h
index edf5eb8f..d80f0b33 100644
--- a/src/net/manaserv/guildhandler.h
+++ b/src/net/manaserv/guildhandler.h
@@ -22,19 +22,44 @@
#ifndef NET_MANASERV_GUILDHANDLER_H
#define NET_MANASERV_GUILDHANDLER_H
-#include "net/manaserv/messagehandler.h"
+#include "net/guildhandler.h"
-#include <string>
+#include "net/manaserv/messagehandler.h"
namespace ManaServ {
-class GuildHandler : public MessageHandler
+class GuildHandler : public Net::GuildHandler, public MessageHandler
{
public:
GuildHandler();
void handleMessage(Net::MessageIn &msg);
+ void create(const std::string &name);
+
+ void invite(int guildId, const std::string &name);
+
+ void invite(int guidId, Player *player);
+
+ void inviteResponse(int guidId, bool response);
+
+ void leave(int guildId);
+
+ void kick(int guildId, int playerId);
+
+ void chat(int guildId, const std::string &text);
+
+ void memberList(int guildId);
+
+ void changeMemberPostion(int guildId, int playerId, int level);
+
+ void requestAlliance(int guildId, int otherGuildId);
+
+ void requestAllianceResponse(int guildId, int otherGuildId,
+ bool response);
+
+ void endAlliance(int guildId, int otherGuildId);
+
protected:
void joinedGuild(Net::MessageIn &msg);
};