OSDN Git Service

[Refactor] #2138 request_command_buffer[] をInputKeyRequestorに組み込み、private変数の呼び出しにthisを付けた
[hengbandforosx/hengbandosx.git] / src / io / input-key-requester.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "game-option/keymap-directory-getter.h"
5
6 extern concptr keymap_act[KEYMAP_MODES][256];
7
8 extern bool use_menu;
9
10 extern COMMAND_CODE command_cmd;
11 extern COMMAND_ARG command_arg;
12 extern int16_t 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;
18
19 class PlayerType;
20 class InputKeyRequestor {
21 public:
22     InputKeyRequestor(PlayerType *player_ptr, int shopping);
23     void request_command();
24
25 private:
26     PlayerType *player_ptr;
27     int shopping;
28     char request_command_buffer[256]{}; /*!< Special buffer to hold the action of the current keymap */
29
30     char inkey_from_menu();
31 };