ManaPlus
partyhandler.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2008 Lloyd Bryant <[email protected]>
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_PARTYHANDLER_H
24 #define NET_EATHENA_PARTYHANDLER_H
25 
26 #include "net/ea/partyhandler.h"
27 
28 namespace EAthena
29 {
30 
32 {
33  public:
34  PartyHandler();
35 
37 
38  ~PartyHandler() override final;
39 
40  void create(const std::string &name) const override final;
41 
42  void invite(const std::string &name) const override final;
43 
44  void inviteResponse(const int partyId,
45  const bool accept) const override final;
46 
47  void leave() const override final;
48 
49  void kick(const Being *const being) const override final;
50 
51  void kick(const std::string &name) const override final;
52 
53  void chat(const std::string &text) const override final;
54 
55  void setShareExperience(const PartyShareT share) const override final;
56 
57  void setShareItems(const PartyShareT share) const override final;
58 
59  void changeLeader(const std::string &name) const override final;
60 
61  void allowInvite(const bool allow) const override final;
62 
63  void setShareAutoItems(const PartyShareT share) const override final;
64 
65  PartyShareT getShareAutoItems() const override final A_WARN_UNUSED;
66 };
67 
68 } // namespace EAthena
69 
70 #endif // NET_EATHENA_PARTYHANDLER_H
Definition: being.h:96
void chat(const std::string &text) const
void changeLeader(const std::string &name) const
void invite(const std::string &name) const
void setShareExperience(const PartyShareT share) const
void setShareAutoItems(const PartyShareT share) const
void create(const std::string &name) const
void allowInvite(const bool allow) const
void inviteResponse(const int partyId, const bool accept) const
void kick(const Being *const being) const
PartyShareT getShareAutoItems() const
void setShareItems(const PartyShareT share) const
#define A_WARN_UNUSED
Definition: localconsts.h:161
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53
TcpNet::Socket accept(const TcpNet::Socket sock)
Definition: sdltcpnet.cpp:198
PartyShare ::T PartyShareT
Definition: partyshare.h:36