Mana
Loading...
Searching...
No Matches
guildhandler.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2009 The Mana World Development Team
4 * Copyright (C) 2009-2012 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include "guild.h"
25
26#include <string>
27
28class Being;
29
30namespace Net {
31
33{
34 public:
35 virtual ~GuildHandler() = default;
36
37 virtual bool isSupported() { return false; }
38
39 virtual void create(const std::string &name) = 0;
40
41 virtual void invite(int guildId, const std::string &name) = 0;
42
43 virtual void invite(int guildId, Being *being) = 0;
44
45 virtual void inviteResponse(int guildId, bool response) = 0;
46
47 virtual void leave(int guildId) = 0;
48
49 virtual void kick(GuildMember *member, std::string reason = std::string()) = 0;
50
51 virtual void chat(int guildId, const std::string &text) = 0;
52
53 virtual void memberList(int guildId) = 0;
54
55 virtual void changeMemberPostion(GuildMember *member, int level) = 0;
56
57 virtual void requestAlliance(int guildId, int otherGuildId) = 0;
58
59 virtual void requestAllianceResponse(int guildId, int otherGuildId,
60 bool response) = 0;
61
62 virtual void endAlliance(int guildId, int otherGuildId) = 0;
63};
64
65}
Definition being.h:65
virtual void inviteResponse(int guildId, bool response)=0
virtual void create(const std::string &name)=0
virtual void chat(int guildId, const std::string &text)=0
virtual void requestAllianceResponse(int guildId, int otherGuildId, bool response)=0
virtual void endAlliance(int guildId, int otherGuildId)=0
virtual void memberList(int guildId)=0
virtual void kick(GuildMember *member, std::string reason=std::string())=0
virtual void changeMemberPostion(GuildMember *member, int level)=0
virtual void invite(int guildId, const std::string &name)=0
virtual bool isSupported()
virtual void leave(int guildId)=0
virtual ~GuildHandler()=default
virtual void invite(int guildId, Being *being)=0
virtual void requestAlliance(int guildId, int otherGuildId)=0
The network communication layer.