Mana
Loading...
Searching...
No Matches
partyhandler.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2008-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 "net/partyhandler.h"
25
27
28#include "party.h"
29
30namespace ManaServ {
31
32class PartyHandler final : public MessageHandler, public Net::PartyHandler
33{
34public:
36
37 void handleMessage(MessageIn &msg) override;
38
39 void create(const std::string &name = std::string()) override;
40
41 void join(int partyId) override;
42
43 void invite(Being *being) override;
44
45 void invite(const std::string &name) override;
46
47 void inviteResponse(const std::string &inviter, bool accept) override;
48
49 void leave() override;
50
51 void kick(Being *being) override;
52
53 void kick(const std::string &name) override;
54
55 void chat(const std::string &text) override;
56
57 void requestPartyMembers() override;
58
60
61 void setShareExperience(PartyShare share) override {}
62
64
65 void setShareItems(PartyShare share) override {}
66
67private:
69};
70
71} // namespace ManaServ
Definition being.h:65
Used for parsing an incoming message from manaserv.
Definition messagein.h:37
void join(int partyId) override
void requestPartyMembers() override
void setShareExperience(PartyShare share) override
void invite(Being *being) override
PartyShare getShareExperience() override
void create(const std::string &name=std::string()) override
void setShareItems(PartyShare share) override
void inviteResponse(const std::string &inviter, bool accept) override
void handleMessage(MessageIn &msg) override
void kick(Being *being) override
void chat(const std::string &text) override
PartyShare getShareItems() override
Definition party.h:59
PartyShare
@ PARTY_SHARE_NO