3 #include "system/angband.h"
4 #include "game-option/keymap-directory-getter.h"
6 extern concptr keymap_act[KEYMAP_MODES][256];
10 extern COMMAND_CODE command_cmd;
11 extern COMMAND_ARG command_arg;
12 extern short command_rep;
13 extern DIRECTION command_dir;
14 extern int16_t command_see;
15 extern TERM_LEN command_gap;
16 extern int16_t command_wrk;
17 extern int16_t command_new;
21 class InputKeyRequestor {
23 InputKeyRequestor(PlayerType *player_ptr, bool shopping);
24 void request_command();
27 PlayerType *player_ptr;
29 char request_command_buffer[256]{}; /*!< Special buffer to hold the action of the current keymap */
34 char inkey_from_menu();
35 bool process_repeat_num(short *cmd);
36 char input_repeat_num();
37 void process_command_command(short *cmd);
38 void process_control_command(short *cmd);
39 void change_shopping_command();
40 int get_caret_command();
41 void confirm_command(ObjectType &o_ref, const int caret_command);