Hengband  2.2.1
term.h
[詳解]
1 #pragma once
2 
3 #include "spells.h"
4 
5 /*
6  * Angband "attributes" (with symbols, and base (R,G,B) codes)
7  *
8  * The "(R,G,B)" codes are given in "fourths" of the "maximal" value,
9  * and should "gamma corrected" on most (non-Macintosh) machines.
10  */
11 #define TERM_DARK 0 /*!< 'd' - 黒 0,0,0 */
12 #define TERM_WHITE 1 /*!< 'w' - 白 4,4,4 */
13 #define TERM_SLATE 2 /*!< 's' - 灰 2,2,2 */
14 #define TERM_ORANGE 3 /*!< 'o' - 橙 4,2,0 */
15 #define TERM_RED 4 /*!< 'r' - 赤 3,0,0 */
16 #define TERM_GREEN 5 /*!< 'g' - 緑 0,2,1 */
17 #define TERM_BLUE 6 /*!< 'b' - 青 0,0,4 */
18 #define TERM_UMBER 7 /*!< 'u' - 琥珀 2,1,0 */
19 #define TERM_L_DARK 8 /*!< 'D' - 暗い灰 1,1,1 */
20 #define TERM_L_WHITE 9 /*!< 'W' - 明るい灰 3,3,3 */
21 #define TERM_VIOLET 10 /*!< 'v' - 紫 4,0,4 */
22 #define TERM_YELLOW 11 /*!< 'y' - 黄 4,4,0 */
23 #define TERM_L_RED 12 /*!< 'R' - 明るい赤 4,0,0 */
24 #define TERM_L_GREEN 13 /*!< 'G' - 明るい緑 0,4,0 */
25 #define TERM_L_BLUE 14 /*!< 'B' - 明るい青 0,4,4 */
26 #define TERM_L_UMBER 15 /*!< 'U' - 明るい琥珀 3,2,1 */
27 
28  /*** Macro Definitions ***/
29  /*
30  * Convert an "attr"/"char" pair into a "pict" (P)
31  */
32 #define PICT(A,C) \
33  ((((u16b)(A)) << 8) | ((byte)(C)))
34 
35  /*
36  * Convert a "pict" (P) into an "attr" (A)
37  */
38 #define PICT_A(P) \
39  ((byte)((P) >> 8))
40 
41  /*
42  * Convert a "pict" (P) into an "char" (C)
43  */
44 #define PICT_C(P) \
45  ((char)((byte)(P)))
46 
47 extern const concptr color_names[16];
48 extern const concptr window_flag_desc[32];
49 extern const concptr ident_info[];
50 extern const concptr color_char;
51 
52 extern term *angband_term[8];
53 
54 extern TERM_COLOR misc_to_attr[256];
55 extern SYMBOL_CODE misc_to_char[256];
56 extern TERM_COLOR tval_to_attr[128];
57 extern SYMBOL_CODE tval_to_char[128];
58 
59 extern const char angband_term_name[8][16];
60 extern byte angband_color_table[256][4];
61 
62 TERM_COLOR mh_attr(int max);
65 
66 extern TERM_COLOR gf_color[MAX_GF];
const char * concptr
文字列定数用ポインタ定義 / A simple pointer (to unmodifiable strings)
Definition: h-type.h:47
const concptr ident_info[]
シンボル解説テーブル / The table of "symbol info" – each entry is a string of the form "X:desc" where "X" is th...
Definition: term.c:150
TERM_COLOR tval_to_attr[128]
Definition: term.c:371
const concptr color_names[16]
色名称テーブル / Hack – the "basic" color names (see "TERM_xxx")
Definition: term.c:50
unsigned short u16b
Definition: h-type.h:99
TERM_COLOR misc_to_attr[256]
Definition: term.c:364
s32b POSITION
ゲーム中の座標型を定義
Definition: h-type.h:146
const concptr window_flag_desc[32]
サブウィンドウ名称テーブル
Definition: term.c:109
const char angband_term_name[8][16]
Definition: term.c:12
term * angband_term[8]
Definition: term.c:352
byte angband_color_table[256][4]
Definition: term.c:27
char SYMBOL_CODE
キャラの文字の型定義
Definition: h-type.h:238
int EFFECT_ID
効果属性ID
Definition: h-type.h:252
byte TERM_COLOR
テキスト表示色の型定義
Definition: h-type.h:237
#define MAX_GF
Definition: spells.h:118
TERM_COLOR mh_attr(int max)
万色表現用にランダムな色を選択する関数 / Get a legal "multi-hued" color for drawing "spells"
Definition: term.c:385
u16b bolt_pict(POSITION y, POSITION x, POSITION ny, POSITION nx, EFFECT_ID typ)
始点から終点にかけた方向毎にボルトのキャラクタを返す / Find the attr/char pair to use for a spell effect
Definition: term.c:526
Definition: z-term.h:44
TERM_COLOR gf_color[MAX_GF]
Definition: term.c:377
TERM_COLOR color_char_to_attr(SYMBOL_CODE c)
シンボル1文字をカラーIDに変更する / Convert a "color letter" into an "actual" color The colors are: dwsorgbuDWvyRGBU...
Definition: term.c:574
TERM_COLOR spell_color(EFFECT_ID type)
魔法属性に応じたエフェクトの色を返す / Return a color to use for the bolt/ball spells
Definition: term.c:416
SYMBOL_CODE tval_to_char[128]
Definition: term.c:372
const concptr color_char
スクリーン表示色キャラクタ / Encode the screen colors
Definition: term.c:358
SYMBOL_CODE misc_to_char[256]
Definition: term.c:365