00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef NET_EA_ADMINHANDLER_H
00023 #define NET_EA_ADMINHANDLER_H
00024
00025 #include "net/adminhandler.h"
00026 #include "net/messagehandler.h"
00027 #include "net/net.h"
00028
00029 namespace EAthena {
00030
00031 class AdminHandler : public MessageHandler, public Net::AdminHandler
00032 {
00033 public:
00034 AdminHandler();
00035
00036 void handleMessage(MessageIn &msg);
00037
00038 void announce(const std::string &text);
00039
00040 void localAnnounce(const std::string &text);
00041
00042 void hide(bool hide);
00043
00044 void kick(int playerId);
00045
00046 void kick(const std::string &name);
00047
00048 void ban(int playerId);
00049
00050 void ban(const std::string &name);
00051
00052 void unban(int playerId);
00053
00054 void unban(const std::string &name);
00055
00056 void mute(int playerId, int type, int limit);
00057 };
00058
00059 }
00060
00061 #endif // NET_EA_ADMINHANDLER_H