Mana
Loading...
Searching...
No Matches
guildhandler.cpp
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2009-2012 The Mana Developers
4 *
5 * This file is part of The Mana Client.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
22
23#include "guild.h"
24#include "event.h"
25
26#include "gui/socialwindow.h"
27
28#include "net/tmwa/messagein.h"
29
31
32#include "utils/gettext.h"
33
35
36namespace TmwAthena {
37
38GuildTab *guildTab = nullptr;
40
45
47{
48 delete guildTab;
49 guildTab = nullptr;
50}
51
55
56void GuildHandler::create(const std::string &name)
57{
58 serverNotice(_("Guild creation isn't supported."));
59}
60
61void GuildHandler::invite(int guildId, const std::string &name)
62{
63}
64
65void GuildHandler::invite(int guildId, Being *being)
66{
67}
68
69void GuildHandler::inviteResponse(int guildId, bool response)
70{
71}
72
73void GuildHandler::leave(int guildId)
74{
75}
76
77void GuildHandler::kick(GuildMember *member, std::string reason)
78{
79}
80
81void GuildHandler::chat(int guildId, const std::string &text)
82{
83}
84
85void GuildHandler::memberList(int guildId)
86{
87}
88
90{
91}
92
93void GuildHandler::requestAlliance(int guildId, int otherGuildId)
94{
95}
96
97void GuildHandler::requestAllianceResponse(int guildId, int otherGuildId,
98 bool response)
99{
100}
101
102void GuildHandler::endAlliance(int guildId, int otherGuildId)
103{
104}
105
106} // namespace TmwAthena
Definition being.h:65
Definition guild.h:55
void handleMessage(MessageIn &msg) override
void endAlliance(int guildId, int otherGuildId) override
void chat(int guildId, const std::string &text) override
void kick(GuildMember *member, std::string reason=std::string()) override
void changeMemberPostion(GuildMember *member, int level) override
void invite(int guildId, const std::string &name) override
void requestAllianceResponse(int guildId, int otherGuildId, bool response) override
void memberList(int guildId) override
void requestAlliance(int guildId, int otherGuildId) override
void inviteResponse(int guildId, bool response) override
void create(const std::string &name) override
void leave(int guildId) override
A tab for a guild chat channel.
Definition guildtab.h:32
Used for parsing an incoming message from eAthena.
Definition messagein.h:35
void serverNotice(const std::string &message)
Definition event.h:319
#define _(s)
Definition gettext.h:38
Net::GuildHandler * guildHandler
Definition net.cpp:53
Warning: buffers and other variables are shared, so there can be only one connection active at a time...
Guild * taGuild
Definition guildtab.cpp:38
GuildTab * guildTab