GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/adminhandler.h Lines: 0 1 0.0 %
Date: 2021-03-17 Branches: 0 0 0.0 %

Line Branch Exec Source
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
27
#include "enums/simpletypes/beingid.h"
28
#include "enums/simpletypes/itemcolor.h"
29
30
#include <string>
31
32
#include "localconsts.h"
33
34
class Being;
35
36
namespace Net
37
{
38
39
class AdminHandler notfinal
40
{
41
    public:
42
        AdminHandler()
43
        { }
44
45
        A_DELETE_COPY(AdminHandler)
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
195
extern Net::AdminHandler *adminHandler;
196
197
#endif  // NET_ADMINHANDLER_H