3 #include "game-option/keymap-directory-getter.h"
4 #include "system/angband.h"
7 extern concptr keymap_act[KEYMAP_MODES][256];
11 extern COMMAND_CODE command_cmd;
12 extern COMMAND_ARG command_arg;
13 extern short command_rep;
14 extern DIRECTION command_dir;
15 extern int16_t command_see;
16 extern TERM_LEN command_gap;
17 extern int16_t command_wrk;
18 extern int16_t command_new;
22 class SpecialMenuContent;
23 class InputKeyRequestor {
25 InputKeyRequestor(PlayerType *player_ptr, bool shopping);
26 void request_command();
29 PlayerType *player_ptr;
38 bool is_max_num_odd = false;
43 char inkey_from_menu();
44 bool process_repeat_num(short &cmd);
45 char input_repeat_num();
46 void process_command_command(short &cmd);
47 void process_control_command(short &cmd);
48 void change_shopping_command();
49 int get_caret_command();
50 void sweep_confirmation_equipments();
51 void confirm_command(ItemEntity &o_ref, const int caret_command);
53 void make_commands_frame();
54 std::string switch_special_menu_condition(const SpecialMenuContent &special_menu);
55 int get_command_per_menu_num();
56 bool check_continuous_command();
57 bool check_escape_key(const int old_num);
58 bool process_down_cursor();
59 bool process_up_cursor();
60 void process_right_left_cursor();