summaryrefslogtreecommitdiff
path: root/src/commands.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-18 17:02:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-18 17:02:13 +0300
commitdd828df46a661fbd0a24fbe540a4a585360be005 (patch)
tree7963e4739a4f6ace5d5c847edd4e679cc6c9bf87 /src/commands.h
parentea28a76cfbace0ccc8d25e523b410f2dea339423 (diff)
downloadmanaverse-dd828df46a661fbd0a24fbe540a4a585360be005.tar.gz
manaverse-dd828df46a661fbd0a24fbe540a4a585360be005.tar.bz2
manaverse-dd828df46a661fbd0a24fbe540a4a585360be005.tar.xz
manaverse-dd828df46a661fbd0a24fbe540a4a585360be005.zip
add named commands with enum.
use some named commands from popupmenu.
Diffstat (limited to 'src/commands.h')
-rw-r--r--src/commands.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/src/commands.h b/src/commands.h
index 96423d748..bd0b8107d 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -120,6 +120,86 @@ namespace Commands
void replaceVars(std::string &str);
} // namespace Commands
+enum
+{
+ COMMAND_CLOSEALL,
+ COMMAND_IGNOREALL,
+ COMMAND_HELP,
+ COMMAND_ANNOUNCE,
+ COMMAND_WHERE,
+ COMMAND_WHO,
+ COMMAND_MSG,
+ COMMAND_WHISPER,
+ COMMAND_W,
+ COMMAND_QUERY,
+ COMMAND_Q,
+ COMMAND_IGNORE,
+ COMMAND_UNIGNORE,
+ COMMAND_FRIEND,
+ COMMAND_BEFRIEND,
+ COMMAND_DISREGARD,
+ COMMAND_NEUTRAL,
+ COMMAND_BLACKLIST,
+ COMMAND_ENEMY,
+ COMMAND_ERASE,
+ COMMAND_CLEAR,
+ COMMAND_CLEANGRAPHICS,
+ COMMAND_CLEANFONTS,
+ COMMAND_CREATEPARTY,
+ COMMAND_CREATEGUILD,
+ COMMAND_PARTY,
+ COMMAND_ME,
+ COMMAND_TOGGLE,
+ COMMAND_PRESENT,
+ COMMAND_QUIT,
+ COMMAND_ALL,
+ COMMAND_MOVE,
+ COMMAND_TARGET,
+ COMMAND_ATKHUMAN,
+ COMMAND_OUTFIT,
+ COMMAND_EMOTE,
+ COMMAND_AWAY,
+ COMMAND_PSEUDOAWAY,
+ COMMAND_FOLLOW,
+ COMMAND_HEAL,
+ COMMAND_NAVIGATE,
+ COMMAND_IMITATION,
+ COMMAND_MAIL,
+ COMMAND_TRADE,
+ COMMAND_PRICELOAD,
+ COMMAND_PRICESAVE,
+ COMMAND_CACHEINFO,
+ COMMAND_DISCONNECT,
+ COMMAND_UNDRESS,
+ COMMAND_ATTACK,
+ COMMAND_DIRS,
+ COMMAND_INFO,
+ COMMAND_WAIT,
+ COMMAND_UPTIME,
+ COMMAND_ADDPRIORITYATTACK,
+ COMMAND_ADDATTACK,
+ COMMAND_REMOVEATTACK,
+ COMMAND_REMOVEIGNOREATTACK,
+ COMMAND_ADDIGNOREATTACK,
+ COMMAND_DUMP,
+ COMMAND_SERVERIGNOREALL,
+ COMMAND_SERVERUNIGNOREALL,
+ COMMAND_SETDROP,
+ COMMAND_ERROR,
+ COMMAND_DUMPG,
+ COMMAND_DUMPE,
+ COMMAND_DUMPT,
+ COMMAND_DUMPOGL,
+ COMMAND_URL,
+ COMMAND_OPEN,
+ COMMAND_EXECUTE,
+ COMMAND_TESTSDLFONT,
+ COMMAND_ENABLEHIGHLIGHT,
+ COMMAND_DISABLEHIGHLIGHT,
+ COMMAND_HACK,
+ END_COMMANDS,
+};
+
static const CommandInfo commands[] =
{
{"closeall", &Commands::closeAll},