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