summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/enum.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-17 17:12:41 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-17 17:12:41 +0000
commit3e5fbd50de561ffc9e84fba6c4b2d0a2e13b118a (patch)
tree8e08d60e131656353d4210e0b01f8235506374aa /crawl-ref/source/enum.h
parent1210d4439b7da2cea42e15892f7a09a03c6f0814 (diff)
downloadcrawl-ref-3e5fbd50de561ffc9e84fba6c4b2d0a2e13b118a.tar.gz
crawl-ref-3e5fbd50de561ffc9e84fba6c4b2d0a2e13b118a.zip
Do "keypress -> command_type" via keybindings. Solves bug 2018200,
where you couldn't do macros with the old 3.4 keymap since the 3.4 keys were done via macros and macros can't recursively invoke macros. Has the little snag that it doesn't exactly reproduce the 3.4 "fire ammo" command since 3.4 automatically goes to the inventory list but 4.0 doesn't. TODO: * Get levelmap commands to use keybindings instead of hardcoded mappings. * Let function keys and alt keys be bound to commands. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6587 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/enum.h')
-rw-r--r--crawl-ref/source/enum.h27
1 files changed, 20 insertions, 7 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h
index b445dda5e7..a64e47be70 100644
--- a/crawl-ref/source/enum.h
+++ b/crawl-ref/source/enum.h
@@ -514,8 +514,17 @@ enum command_type
CMD_ANNOTATE_LEVEL,
+ // Repeat previous command
+ CMD_PREV_CMD_AGAIN,
+
+ // Repeat next command a given number of times
+ CMD_REPEAT_CMD,
+
+ CMD_MAX_NORMAL = CMD_REPEAT_CMD,
+
// overmap commands
CMD_MAP_CLEAR_MAP,
+ CMD_MIN_OVERMAP = CMD_MAP_CLEAR_MAP,
CMD_MAP_ADD_WAYPOINT,
CMD_MAP_EXCLUDE_AREA,
CMD_MAP_CLEAR_EXCLUDES,
@@ -558,8 +567,11 @@ enum command_type
CMD_MAP_EXIT_MAP,
+ CMD_MAX_OVERMAP = CMD_MAP_EXIT_MAP,
+
// targeting commands
CMD_TARGET_DOWN_LEFT,
+ CMD_MIN_TARGET = CMD_TARGET_DOWN_LEFT,
CMD_TARGET_DOWN,
CMD_TARGET_DOWN_RIGHT,
CMD_TARGET_LEFT,
@@ -609,29 +621,30 @@ enum command_type
CMD_TARGET_WIZARD_MOVE,
CMD_TARGET_WIZARD_PATHFIND,
CMD_TARGET_HELP,
+ CMD_MAX_TARGET = CMD_TARGET_HELP,
#ifdef USE_TILE
CMD_TARGET_MOUSE_MOVE,
+ CMD_MIN_TILE = CMD_TARGET_MOUSE_MOVE,
CMD_TARGET_MOUSE_SELECT,
CMD_EDIT_PLAYER_TILE,
+ CMD_MAX_TILE = CMD_EDIT_PLAYER_TILE,
#endif
// Disable/enable -more- prompts.
CMD_DISABLE_MORE,
+ CMD_MIN_SYNTHETIC = CMD_DISABLE_MORE,
CMD_ENABLE_MORE,
// [ds] Silently ignored, requests another round of input.
CMD_NEXT_CMD,
- // Repeat previous command
- CMD_PREV_CMD_AGAIN,
-
- // Repeat next command a given number of times
- CMD_REPEAT_CMD,
-
// Stick the keyspresses of the command to be repeated into the
// input buffer.
- CMD_REPEAT_KEYS
+ CMD_REPEAT_KEYS,
+
+ // Must always be last
+ CMD_MAX_CMD
};
enum conduct_type