Mana
Loading...
Searching...
No Matches
partyhandler.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2008 Lloyd Bryant <lloyd_bryant@netzero.net>
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/net.h"
25#include "net/partyhandler.h"
26
28
29namespace TmwAthena {
30
31class PartyHandler final : public MessageHandler, public Net::PartyHandler
32{
33 public:
35
36 ~PartyHandler() override;
37
38 void handleMessage(MessageIn &msg) override;
39
40 void create(const std::string &name = std::string()) override;
41
42 void join(int partyId) override;
43
44 void invite(Being *being) override;
45
46 void invite(const std::string &name) override;
47
48 void inviteResponse(const std::string &inviter, bool accept) override;
49
50 void leave() override;
51
52 void kick(Being *being) override;
53
54 void kick(const std::string &name) override;
55
56 void chat(const std::string &text) override;
57
58 void requestPartyMembers() override;
59
61
62 void setShareExperience(PartyShare share) override;
63
64 PartyShare getShareItems() override { return mShareItems; }
65
66 void setShareItems(PartyShare share) override;
67
68 private:
70};
71
72} // namespace TmwAthena
Definition being.h:65
Used for parsing an incoming message from eAthena.
Definition messagein.h:35
void setShareExperience(PartyShare share) override
void invite(Being *being) override
void inviteResponse(const std::string &inviter, bool accept) override
void create(const std::string &name=std::string()) override
PartyShare getShareItems() override
void chat(const std::string &text) override
void kick(Being *being) override
void handleMessage(MessageIn &msg) override
void setShareItems(PartyShare share) override
void requestPartyMembers() override
PartyShare getShareExperience() override
void join(int partyId) override
Warning: buffers and other variables are shared, so there can be only one connection active at a time...
PartyShare