diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-23 19:44:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-23 19:44:33 +0300 |
commit | d6f58bee33ca548ea6fc125553aa8d4d2fdba91f (patch) | |
tree | f56a9c37da0ef39c470a3da6315a073c87b1c984 /src/actions/commands.cpp | |
parent | 663b79fd68f9e7f578415f3d0f015a3d8ba998cb (diff) | |
download | manaplus-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.tar.gz manaplus-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.tar.bz2 manaplus-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.tar.xz manaplus-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.zip |
Move chat command /announce into actions.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp new file mode 100644 index 000000000..c7607a2cd --- /dev/null +++ b/src/actions/commands.cpp @@ -0,0 +1,85 @@ +/* + * The ManaPlus Client + * Copyright (C) 2012-2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "actions/commands.h" + +#include "actormanager.h" +#include "dropshortcut.h" +#include "emoteshortcut.h" +#include "game.h" +#include "itemshortcut.h" +#include "soundmanager.h" + +#include "actions/actiondef.h" + +#include "being/attributes.h" +#include "being/localplayer.h" +#include "being/playerinfo.h" +#include "being/playerrelations.h" + +#include "gui/dialogsmanager.h" +#include "gui/gui.h" +#include "gui/popupmanager.h" +#include "gui/sdlinput.h" +#include "gui/viewport.h" + +#include "gui/popups/popupmenu.h" + +#include "gui/windows/skilldialog.h" +#include "gui/windows/socialwindow.h" +#include "gui/windows/statuswindow.h" +#include "gui/windows/tradewindow.h" +#include "gui/windows/questswindow.h" +#include "gui/windows/quitdialog.h" +#include "gui/windows/whoisonline.h" +#include "gui/windows/botcheckerwindow.h" +#include "gui/windows/buyselldialog.h" +#include "gui/windows/chatwindow.h" +#include "gui/windows/debugwindow.h" +#include "gui/windows/didyouknowwindow.h" +#include "gui/windows/equipmentwindow.h" +#include "gui/windows/helpwindow.h" +#include "gui/windows/inventorywindow.h" +#include "gui/windows/killstats.h" +#include "gui/windows/minimap.h" +#include "gui/windows/npcdialog.h" +#include "gui/windows/outfitwindow.h" +#include "gui/windows/setupwindow.h" +#include "gui/windows/shopwindow.h" +#include "gui/windows/shortcutwindow.h" +#include "gui/windows/updaterwindow.h" + +#include "gui/widgets/tabs/chattab.h" + +#include "net/adminhandler.h" +#include "net/net.h" + +#include "debug.h" + +namespace Actions +{ + +impHandler(chatAnnounce) +{ + Net::getAdminHandler()->announce(event.args); + return true; +} + +} // namespace Actions |