diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 18:59:10 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 18:59:10 -0700 |
commit | 6ec98a246ee9915cdcc4a58f5de6882e415adc2f (patch) | |
tree | 45add22f8dfc85c45910cad41db79c979310c113 /src/net/ea/guildhandler.h | |
parent | 75dbcb1b780fe3fc2f09cbcdc05f9559446ef482 (diff) | |
download | mana-client-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.tar.gz mana-client-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.tar.bz2 mana-client-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.tar.xz mana-client-6ec98a246ee9915cdcc4a58f5de6882e415adc2f.zip |
Move ManaServ guild code into GuildHandler
Ad start eAthena's GuildHandler
Diffstat (limited to 'src/net/ea/guildhandler.h')
-rw-r--r-- | src/net/ea/guildhandler.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/net/ea/guildhandler.h b/src/net/ea/guildhandler.h new file mode 100644 index 00000000..e80e4818 --- /dev/null +++ b/src/net/ea/guildhandler.h @@ -0,0 +1,66 @@ +/* + * The Mana World + * Copyright (C) 2009 The Mana World Development Team + * + * This file is part of The Mana World. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef NET_EA_GUILDHANDLER_H +#define NET_EA_GUILDHANDLER_H + +#include "net/guildhandler.h" + +#include "net/ea/messagehandler.h" + +namespace EAthena { + +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 guildId, Player *player); + + void inviteResponse(int guildId, 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); +}; + +} + +#endif // NET_EA_GUILDHANDLER_H |