OSDN Git Service

Merge pull request #2936 from habu1010/feature/refactor-asking-player-function-signature
[hengbandforosx/hengbandosx.git] / src / core / asking-player.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include <string_view>
5
6 /*
7  * Bit flags for control of get_check_strict()
8  */
9 #define CHECK_OKAY_CANCEL 0x01
10 #define CHECK_NO_ESCAPE 0x02
11 #define CHECK_NO_HISTORY 0x04
12 #define CHECK_DEFAULT_Y 0x08
13
14 class PlayerType;
15 bool askfor(char *buf, int len, bool numpad_cursor = true);
16 bool get_string(std::string_view prompt, char *buf, int len);
17 bool get_check(std::string_view prompt);
18 bool get_check_strict(PlayerType *player_ptr, std::string_view prompt, BIT_FLAGS mode);
19 bool get_com(std::string_view prompt, char *command, bool z_escape);
20 QUANTITY get_quantity(concptr prompt, QUANTITY max);
21 void pause_line(int row);
22 bool get_value(std::string_view prompt, int min, int max, int *value);