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_EATHENA_GUILDHANDLER_H
24 #define NET_EATHENA_GUILDHANDLER_H
25 
26 #include "net/guildhandler.h"
27 
28 class GuildTab;
29 
30 namespace EAthena
31 {
32 
34 {
35  public:
36  GuildHandler();
37 
39 
40  ~GuildHandler() override final;
41 
42  void clear() const override final;
43 
44  ChatTab *getTab() const override final;
45 
46  void create(const std::string &name) const override final;
47 
48  void invite(const std::string &name) const override final;
49 
50  void invite(const Being *const being) const override final;
51 
52  void inviteResponse(const int guildId,
53  const bool response) const override final;
54 
55  void leave(const int guildId) const override final;
56 
57  void kick(const GuildMember *restrict const member,
58  const std::string &restrict reason) const override final;
59 
60  void chat(const std::string &text) const override final;
61 
62  void memberList() const override final;
63 
64  void info() const override final;
65 
66  void changeMemberPostion(const GuildMember *const member,
67  const int level) const override final;
68 
69  void changeNotice(const int guildId,
70  const std::string &restrict msg1,
71  const std::string &restrict msg2)
72  const override final;
73 
74  void checkMaster() const override final;
75 
76  void requestAlliance(const Being *const being) const override final;
77 
78  void requestAllianceResponse(const int beingId,
79  const bool accept) const override final;
80 
81  void endAlliance(const int guildId,
82  const int flag) const override final;
83 
84  void changePostionInfo(const int posId,
85  const int mode,
86  const int ranking,
87  const int payRate,
88  const std::string &name) const override final;
89 
90  void requestOpposition(const Being *const being) const override final;
91 
92  void breakGuild(const std::string &name) const override final;
93 
94  void changeEmblem(std::string emblem) const override final;
95 
96  void requestEmblem(const int guildId) const override final;
97 };
98 
99 extern Guild *taGuild;
100 
101 } // namespace EAthena
102 
103 extern GuildTab *guildTab;
104 
105 #endif // NET_EATHENA_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 checkMaster() const
void invite(const std::string &name) const
void changeNotice(const int guildId, const std::string &msg1, const std::string &msg2) const
void requestAlliance(const Being *const being) const
void requestAllianceResponse(const int beingId, const bool accept) const
void changeEmblem(std::string emblem) const
ChatTab * getTab() const
void requestEmblem(const int guildId) const
void requestOpposition(const Being *const being) const
void breakGuild(const std::string &name) const
void endAlliance(const int guildId, const int flag) const
void chat(const std::string &text) const
void inviteResponse(const int guildId, const bool response) const
void leave(const int guildId) const
void changePostionInfo(const int posId, const int mode, const int ranking, const int payRate, const std::string &name) const
void create(const std::string &name) const
Definition: guild.h:70
GuildTab * guildTab
#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
Guild * taGuild
Definition: guildhandler.h:99
TcpNet::Socket accept(const TcpNet::Socket sock)
Definition: sdltcpnet.cpp:198