From 00c7073096a7bf40cee7595d0d419b9feff1c120 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 May 2013 19:42:42 +0300 Subject: Add ability to call input action from commands. add new commands: /drop - drop from first slot. /dropn - drop fro any slots. /movetotarget - move to target position. /movetohome - move to home position. /sethome - set home position. --- src/commandhandler.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/commandhandler.h') diff --git a/src/commandhandler.h b/src/commandhandler.h index 2bcd9e596..a655d8d32 100644 --- a/src/commandhandler.h +++ b/src/commandhandler.h @@ -33,7 +33,7 @@ class ChatTab; extern ChatTab *localChatTab; -typedef std::map CommandsMap; +typedef std::map CommandsMap; typedef CommandsMap::const_iterator CommandsMapIter; /** @@ -89,6 +89,12 @@ class CommandHandler final friend class ChatTab; friend class WhisperTab; CommandsMap mCommands; + + private: + void callFunc(const CommandInfo &info, + const std::string &args, + ChatTab *const tab); + }; extern CommandHandler *commandHandler; -- cgit v1.2.3-60-g2f50