Change special keys into extended commands
Changes most of the special keys used in the main input loop into extended commands: - movement keys are now bound to extended commands, eg. #movewest and so on. - m-prefix is now #reqmenu extended command, still bound to the 'm' key. - run, rush, and fight are now extended commands, still bound to the same keys as previously. - nopickup and runnopickup keys are removed. Nopickup was using 'm' key, the same as the m-prefix, so allow #reqmenu to modify movement commands to disable pickup. - multiple prefix commands are allowed. This lets user to use #reqmenu, followed by #run, followed by movement to simulate runnopickup behaviour. (If necessary, adding runnopickup back as an extended command would be easy)
This commit is contained in:
@@ -199,12 +199,41 @@ extern boolean status_hilite_menu(void);
|
||||
|
||||
/* ### cmd.c ### */
|
||||
|
||||
extern int do_move_west(void);
|
||||
extern int do_move_northwest(void);
|
||||
extern int do_move_north(void);
|
||||
extern int do_move_northeast(void);
|
||||
extern int do_move_east(void);
|
||||
extern int do_move_southeast(void);
|
||||
extern int do_move_south(void);
|
||||
extern int do_move_southwest(void);
|
||||
extern int do_rush_west(void);
|
||||
extern int do_rush_northwest(void);
|
||||
extern int do_rush_north(void);
|
||||
extern int do_rush_northeast(void);
|
||||
extern int do_rush_east(void);
|
||||
extern int do_rush_southeast(void);
|
||||
extern int do_rush_south(void);
|
||||
extern int do_rush_southwest(void);
|
||||
extern int do_run_west(void);
|
||||
extern int do_run_northwest(void);
|
||||
extern int do_run_north(void);
|
||||
extern int do_run_northeast(void);
|
||||
extern int do_run_east(void);
|
||||
extern int do_run_southeast(void);
|
||||
extern int do_run_south(void);
|
||||
extern int do_run_southwest(void);
|
||||
extern int do_reqmenu(void);
|
||||
extern int do_rush(void);
|
||||
extern int do_run(void);
|
||||
extern int do_fight(void);
|
||||
extern char randomkey(void);
|
||||
extern void random_response(char *, int);
|
||||
extern int rnd_extcmd_idx(void);
|
||||
extern int domonability(void);
|
||||
extern const struct ext_func_tab *ext_func_tab_from_func(int(*)(void));
|
||||
extern char cmd_from_func(int(*)(void));
|
||||
extern char cmd_from_dir(int, int);
|
||||
extern const char *cmdname_from_func(int(*)(void), char *, boolean);
|
||||
extern boolean redraw_cmd(char);
|
||||
extern const char *levltyp_to_name(int);
|
||||
|
||||
Reference in New Issue
Block a user