ManaPlus
adminhandler.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2009 The Mana World Development Team
4  * Copyright (C) 2009-2010 The Mana Developers
5  * Copyright (C) 2011-2019 The ManaPlus Developers
6  * Copyright (C) 2019-2021 Andrei Karas
7  *
8  * This file is part of The ManaPlus Client.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef NET_ADMINHANDLER_H
25 #define NET_ADMINHANDLER_H
26 
29 
30 #include <string>
31 
32 #include "localconsts.h"
33 
34 class Being;
35 
36 namespace Net
37 {
38 
40 {
41  public:
43  { }
44 
46 
47  virtual ~AdminHandler()
48  { }
49 
50  virtual void announce(const std::string &text) const = 0;
51 
52  virtual void localAnnounce(const std::string &text) const = 0;
53 
54  virtual void hide(const bool hide) const = 0;
55 
56  virtual void kick(const BeingId playerId) const = 0;
57 
58  virtual void kickName(const std::string &name) const = 0;
59 
60  virtual void kickAll() const = 0;
61 
62  virtual void ban(const int playerId) const = 0;
63 
64  virtual void banName(const std::string &name) const = 0;
65 
66  virtual void unban(const int playerId) const = 0;
67 
68  virtual void unbanName(const std::string &name) const = 0;
69 
70  virtual void mute(const Being *const being,
71  const int type,
72  const int limit) const = 0;
73 
74  virtual void muteName(const std::string &name) const = 0;
75 
76  virtual void warp(const std::string &map,
77  const int x, const int y) const = 0;
78 
79  virtual void slide(const int x, const int y) const = 0;
80 
81  virtual void createItems(const int id,
82  const ItemColor color,
83  const int amount) const = 0;
84 
85  virtual void gotoName(const std::string &name) const = 0;
86 
87  virtual void recallName(const std::string &name) const = 0;
88 
89  virtual void alive(const std::string &name) const = 0;
90 
91  virtual void ipcheckName(const std::string &name) const = 0;
92 
93  virtual void resetStats() const = 0;
94 
95  virtual void resetSkills() const = 0;
96 
97  virtual void requestLogin(const Being *const being) const = 0;
98 
99  virtual void setTileType(const int x, const int y,
100  const int type) const = 0;
101 
102  virtual void unequipAll(const Being *const being) const = 0;
103 
104  virtual void requestStats(const std::string &name) const = 0;
105 
106  virtual void monsterInfo(const std::string &name) const = 0;
107 
108  virtual void itemInfo(const std::string &name) const = 0;
109 
110  virtual void whoDrops(const std::string &name) const = 0;
111 
112  virtual void mobSearch(const std::string &name) const = 0;
113 
114  virtual void mobSpawnSearch(const std::string &name) const = 0;
115 
116  virtual void playerGmCommands(const std::string &name) const = 0;
117 
118  virtual void playerCharGmCommands(const std::string &name) const = 0;
119 
120  virtual void showLevel(const std::string &name) const = 0;
121 
122  virtual void showStats(const std::string &name) const = 0;
123 
124  virtual void showStorageList(const std::string &name) const = 0;
125 
126  virtual void showCartList(const std::string &name) const = 0;
127 
128  virtual void showInventoryList(const std::string &name) const = 0;
129 
130  virtual void locatePlayer(const std::string &name) const = 0;
131 
132  virtual void showAccountInfo(const std::string &name) const = 0;
133 
134  virtual void spawn(const std::string &name) const = 0;
135 
136  virtual void spawnSlave(const std::string &name) const = 0;
137 
138  virtual void spawnClone(const std::string &name) const = 0;
139 
140  virtual void spawnSlaveClone(const std::string &name) const = 0;
141 
142  virtual void spawnEvilClone(const std::string &name) const = 0;
143 
144  virtual void savePosition(const std::string &name) const = 0;
145 
146  virtual void loadPosition(const std::string &name) const = 0;
147 
148  virtual void randomWarp(const std::string &name) const = 0;
149 
150  virtual void gotoNpc(const std::string &name) const = 0;
151 
152  virtual void killer(const std::string &name) const = 0;
153 
154  virtual void killable(const std::string &name) const = 0;
155 
156  virtual void heal(const std::string &name) const = 0;
157 
158  virtual void disguise(const std::string &name) const = 0;
159 
160  virtual void immortal(const std::string &name) const = 0;
161 
162  virtual void hide(const std::string &name) const = 0;
163 
164  virtual void nuke(const std::string &name) const = 0;
165 
166  virtual void kill(const std::string &name) const = 0;
167 
168  virtual void jail(const std::string &name) const = 0;
169 
170  virtual void unjail(const std::string &name) const = 0;
171 
172  virtual void npcMove(const std::string &name,
173  const int x,
174  const int y) const = 0;
175 
176  virtual void hideNpc(const std::string &name) const = 0;
177 
178  virtual void showNpc(const std::string &name) const = 0;
179 
180  virtual void changePartyLeader(const std::string &name) const = 0;
181 
182  virtual void partyRecall(const std::string &name) const = 0;
183 
184  virtual void breakGuild(const std::string &name) const = 0;
185 
186  virtual void guildRecall(const std::string &name) const = 0;
187 
188  virtual void changeDress() const = 0;
189 
190  virtual void resetCooldowns() const = 0;
191 };
192 
193 } // namespace Net
194 
196 
197 #endif // NET_ADMINHANDLER_H
Net::AdminHandler * adminHandler
Definition: net.cpp:84
int BeingId
Definition: beingid.h:30
Definition: being.h:96
virtual void mobSpawnSearch(const std::string &name) const =0
virtual void disguise(const std::string &name) const =0
virtual void muteName(const std::string &name) const =0
virtual void requestStats(const std::string &name) const =0
virtual void playerGmCommands(const std::string &name) const =0
virtual void resetSkills() const =0
virtual void ban(const int playerId) const =0
virtual void setTileType(const int x, const int y, const int type) const =0
virtual void whoDrops(const std::string &name) const =0
virtual void showStorageList(const std::string &name) const =0
virtual void heal(const std::string &name) const =0
virtual void recallName(const std::string &name) const =0
virtual void changePartyLeader(const std::string &name) const =0
virtual void mute(const Being *const being, const int type, const int limit) const =0
virtual void resetStats() const =0
virtual void breakGuild(const std::string &name) const =0
virtual void gotoName(const std::string &name) const =0
virtual void createItems(const int id, const ItemColor color, const int amount) const =0
virtual void partyRecall(const std::string &name) const =0
virtual void loadPosition(const std::string &name) const =0
virtual void unequipAll(const Being *const being) const =0
virtual void banName(const std::string &name) const =0
virtual void showLevel(const std::string &name) const =0
virtual void hide(const bool hide) const =0
virtual void nuke(const std::string &name) const =0
virtual void killable(const std::string &name) const =0
virtual void spawnClone(const std::string &name) const =0
virtual void locatePlayer(const std::string &name) const =0
virtual void jail(const std::string &name) const =0
virtual void playerCharGmCommands(const std::string &name) const =0
virtual void slide(const int x, const int y) const =0
virtual void immortal(const std::string &name) const =0
virtual void spawnSlave(const std::string &name) const =0
virtual void hideNpc(const std::string &name) const =0
virtual void unbanName(const std::string &name) const =0
virtual void ipcheckName(const std::string &name) const =0
virtual void killer(const std::string &name) const =0
virtual void changeDress() const =0
virtual void kickName(const std::string &name) const =0
virtual void itemInfo(const std::string &name) const =0
virtual void showAccountInfo(const std::string &name) const =0
virtual void showInventoryList(const std::string &name) const =0
virtual void kill(const std::string &name) const =0
virtual void spawnEvilClone(const std::string &name) const =0
virtual void announce(const std::string &text) const =0
virtual void randomWarp(const std::string &name) const =0
virtual void guildRecall(const std::string &name) const =0
virtual void npcMove(const std::string &name, const int x, const int y) const =0
virtual void gotoNpc(const std::string &name) const =0
virtual void showStats(const std::string &name) const =0
virtual void kick(const BeingId playerId) const =0
virtual void hide(const std::string &name) const =0
virtual void kickAll() const =0
virtual void showCartList(const std::string &name) const =0
virtual void resetCooldowns() const =0
virtual void spawnSlaveClone(const std::string &name) const =0
virtual void warp(const std::string &map, const int x, const int y) const =0
virtual void unjail(const std::string &name) const =0
virtual void monsterInfo(const std::string &name) const =0
virtual void localAnnounce(const std::string &text) const =0
virtual void spawn(const std::string &name) const =0
virtual void alive(const std::string &name) const =0
virtual void savePosition(const std::string &name) const =0
virtual void unban(const int playerId) const =0
virtual void requestLogin(const Being *const being) const =0
virtual void showNpc(const std::string &name) const =0
virtual void mobSearch(const std::string &name) const =0
uint16_t ItemColor
Definition: itemcolor.h:30
#define notfinal
Definition: localconsts.h:261
#define A_DELETE_COPY(func)
Definition: localconsts.h:53