Mana
Loading...
Searching...
No Matches
partyhandler.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 <string>
25
26class Being;
27
34
35namespace Net {
36
38{
39 public:
40 virtual ~PartyHandler() = default;
41
42 virtual void create(const std::string &name = std::string()) = 0;
43
44 virtual void join(int partyId) = 0;
45
46 virtual void invite(Being *player) = 0;
47
48 virtual void invite(const std::string &name) = 0;
49
50 virtual void inviteResponse(const std::string &inviter, bool accept) = 0;
51
52 virtual void leave() = 0;
53
54 virtual void kick(Being *player) = 0;
55
56 virtual void kick(const std::string &name) = 0;
57
58 virtual void chat(const std::string &text) = 0;
59
60 virtual void requestPartyMembers() = 0;
61
63
64 virtual void setShareExperience(PartyShare share) = 0;
65
67
68 virtual void setShareItems(PartyShare share) = 0;
69
70 // virtual void options() = 0;
71
72 // virtual void message() = 0;
73};
74
75} // namespace Net
Definition being.h:65
virtual void leave()=0
virtual void setShareExperience(PartyShare share)=0
virtual void create(const std::string &name=std::string())=0
virtual void kick(Being *player)=0
virtual void chat(const std::string &text)=0
virtual void setShareItems(PartyShare share)=0
virtual ~PartyHandler()=default
virtual void invite(const std::string &name)=0
virtual void kick(const std::string &name)=0
virtual void invite(Being *player)=0
virtual void join(int partyId)=0
virtual PartyShare getShareExperience()=0
virtual void inviteResponse(const std::string &inviter, bool accept)=0
virtual PartyShare getShareItems()=0
virtual void requestPartyMembers()=0
The network communication layer.
PartyShare
@ PARTY_SHARE
@ PARTY_SHARE_NO
@ PARTY_SHARE_UNKNOWN
@ PARTY_SHARE_NOT_POSSIBLE