ManaPlus
guildhandler.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2009-2010 The Mana Developers
4  * Copyright (C) 2011-2019 The ManaPlus Developers
5  * Copyright (C) 2019-2021 Andrei Karas
6  *
7  * This file is part of The ManaPlus Client.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef NET_TMWA_GUILDHANDLER_H
24 #define NET_TMWA_GUILDHANDLER_H
25 
26 #include "net/guildhandler.h"
27 
28 namespace TmwAthena
29 {
30 
32 {
33  public:
34  GuildHandler();
35 
37 
38  ~GuildHandler() override final;
39 
40  void clear() const override final;
41 
42  ChatTab *getTab() const override final;
43 
44  void create(const std::string &name) const override final;
45 
46  void invite(const std::string &name) const override final;
47 
48  void invite(const Being *const being) const override final;
49 
50  void inviteResponse(const int guildId,
51  const bool response) const override final;
52 
53  void leave(const int guildId) const override final;
54 
55  void kick(const GuildMember *restrict const member,
56  const std::string &restrict reason) const override final;
57 
58  void chat(const std::string &text) const override final;
59 
60  void memberList() const override final;
61 
62  void info() const override final;
63 
64  void changeMemberPostion(const GuildMember *const member,
65  const int level) const override final;
66 
67  void changeNotice(const int guildId,
68  const std::string &restrict msg1,
69  const std::string &restrict msg2)
70  const override final;
71 
72  void checkMaster() const override final;
73 
74  void requestAlliance(const Being *const being) const override final;
75 
76  void requestAllianceResponse(const int beingId,
77  const bool accept) const override final;
78 
79  void endAlliance(const int guildId,
80  const int flag) const override final;
81 
82  void changePostionInfo(const int posId,
83  const int mode,
84  const int ranking,
85  const int payRate,
86  const std::string &name) const override final;
87 
88  void requestOpposition(const Being *const being) const override final;
89 
90  void breakGuild(const std::string &name) const override final;
91 
92  void changeEmblem(std::string emblem) const override final;
93 
94  void requestEmblem(const int guildId) const override final;
95 };
96 
97 } // namespace TmwAthena
98 
99 #endif // NET_TMWA_GUILDHANDLER_H
Definition: being.h:96
void kick(const GuildMember *const member, const std::string &reason) const
void changeMemberPostion(const GuildMember *const member, const int level) const
void inviteResponse(const int guildId, const bool response) const
void create(const std::string &name) const
void requestEmblem(const int guildId) const
void requestAlliance(const Being *const being) const
void invite(const std::string &name) const
ChatTab * getTab() const
void changeNotice(const int guildId, const std::string &msg1, const std::string &msg2) const
void requestAllianceResponse(const int beingId, const bool accept) const
void changeEmblem(std::string emblem) const
void breakGuild(const std::string &name) const
void requestOpposition(const Being *const being) const
void leave(const int guildId) const
void endAlliance(const int guildId, const int flag) const
void changePostionInfo(const int posId, const int mode, const int ranking, const int payRate, const std::string &name) const
void chat(const std::string &text) const
#define restrict
Definition: localconsts.h:165
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53
bool msg2(InputEvent &event)
Definition: chat.cpp:41
TcpNet::Socket accept(const TcpNet::Socket sock)
Definition: sdltcpnet.cpp:198