OSDN Git Service

Merge branch 'macos-develop' into macos-3-0-0
[hengbandforosx/hengbandosx.git] / src / term / gameterm.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include <array>
5 #include <map>
6 #include <string>
7 #include <utility>
8
9 constexpr auto TERM_DEFAULT_COLS = 80;
10 constexpr auto TERM_DEFAULT_ROWS = 24;
11 constexpr auto MAIN_TERM_MIN_COLS = TERM_DEFAULT_COLS;
12 constexpr auto MAIN_TERM_MIN_ROWS = TERM_DEFAULT_ROWS;
13
14 extern const concptr color_names[16];
15 extern const concptr window_flag_desc[32];
16 extern const concptr ident_info[];
17
18 extern std::array<term_type *, 8> angband_terms;
19 #define term_screen (angband_terms[0])
20
21 extern TERM_COLOR misc_to_attr[256];
22 extern char misc_to_char[256];
23 extern TERM_COLOR tval_to_attr[128];
24 extern const char angband_term_name[8][16];
25 extern byte angband_color_table[256][4];
26
27 enum class AttributeType : int;
28 extern std::map<AttributeType, std::string> gf_colors;
29 extern TERM_COLOR color_char_to_attr(char c);
30
31 std::pair<TERM_COLOR, char> bolt_pict(POSITION y, POSITION x, POSITION ny, POSITION nx, AttributeType typ);