Hengband  2.2.1
関数 | 変数
term.c ファイル
#include "angband.h"
#include "util.h"
#include "term.h"
#include "spells.h"
#include "core.h"
term.c の依存先関係図:

関数

TERM_COLOR mh_attr (int max)
 万色表現用にランダムな色を選択する関数 / Get a legal "multi-hued" color for drawing "spells" [詳解]
 
TERM_COLOR spell_color (EFFECT_ID type)
 魔法属性に応じたエフェクトの色を返す / Return a color to use for the bolt/ball spells [詳解]
 
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 [詳解]
 
TERM_COLOR color_char_to_attr (SYMBOL_CODE c)
 シンボル1文字をカラーIDに変更する / Convert a "color letter" into an "actual" color The colors are: dwsorgbuDWvyRGBU, as shown below [詳解]
 

変数

const char angband_term_name [8][16]
 
byte angband_color_table [256][4]
 
const concptr color_names [16]
 色名称テーブル / Hack – the "basic" color names (see "TERM_xxx") [詳解]
 
const concptr window_flag_desc [32]
 サブウィンドウ名称テーブル [詳解]
 
const concptr ident_info []
 シンボル解説テーブル / The table of "symbol info" – each entry is a string of the form "X:desc" where "X" is the trigger, and "desc" is the "info". [詳解]
 
termangband_term [8]
 
const concptr color_char = "dwsorgbuDWvyRGBU"
 スクリーン表示色キャラクタ / Encode the screen colors [詳解]
 
TERM_COLOR misc_to_attr [256]
 
SYMBOL_CODE misc_to_char [256]
 
TERM_COLOR tval_to_attr [128]
 
SYMBOL_CODE tval_to_char [128]
 
TERM_COLOR gf_color [MAX_GF]
 

関数詳解

◆ bolt_pict()

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

引数
y始点Y座標
x始点X座標
ny終点Y座標
nx終点X座標
typ魔法の効果属性
戻り値
方向キャラID
It is moving (or has moved) from (x,y) to (nx,ny).
If the distance is not "one", we (may) return "*".
呼び出し関係図:

◆ color_char_to_attr()

TERM_COLOR color_char_to_attr ( SYMBOL_CODE  c)

シンボル1文字をカラーIDに変更する / Convert a "color letter" into an "actual" color The colors are: dwsorgbuDWvyRGBU, as shown below

引数
cシンボル文字
戻り値
カラーID

◆ mh_attr()

TERM_COLOR mh_attr ( int  max)

万色表現用にランダムな色を選択する関数 / Get a legal "multi-hued" color for drawing "spells"

引数
max色IDの最大値
戻り値
選択した色ID

◆ spell_color()

TERM_COLOR spell_color ( EFFECT_ID  type)

魔法属性に応じたエフェクトの色を返す / Return a color to use for the bolt/ball spells

引数
type魔法属性
戻り値
対応する色ID
呼び出し関係図:

変数詳解

◆ angband_color_table

byte angband_color_table[256][4]
初期値:
=
{
{0x00, 0x00, 0x00, 0x00},
{0x00, 0xFF, 0xFF, 0xFF},
{0x00, 0x80, 0x80, 0x80},
{0x00, 0xFF, 0x80, 0x00},
{0x00, 0xC0, 0x00, 0x00},
{0x00, 0x00, 0x80, 0x40},
{0x00, 0x00, 0x00, 0xFF},
{0x00, 0x80, 0x40, 0x00},
{0x00, 0x40, 0x40, 0x40},
{0x00, 0xC0, 0xC0, 0xC0},
{0x00, 0xFF, 0x00, 0xFF},
{0x00, 0xFF, 0xFF, 0x00},
{0x00, 0xFF, 0x00, 0x00},
{0x00, 0x00, 0xFF, 0x00},
{0x00, 0x00, 0xFF, 0xFF},
{0x00, 0xC0, 0x80, 0x40}
}

◆ angband_term

term* angband_term[8]

◆ angband_term_name

const char angband_term_name[8][16]
初期値:
=
{
"Hengband",
"Term-1",
"Term-2",
"Term-3",
"Term-4",
"Term-5",
"Term-6",
"Term-7"
}

◆ color_char

const concptr color_char = "dwsorgbuDWvyRGBU"

スクリーン表示色キャラクタ / Encode the screen colors

◆ color_names

const concptr color_names[16]

色名称テーブル / Hack – the "basic" color names (see "TERM_xxx")

◆ gf_color

TERM_COLOR gf_color[MAX_GF]

◆ ident_info

const concptr ident_info[]

シンボル解説テーブル / The table of "symbol info" – each entry is a string of the form "X:desc" where "X" is the trigger, and "desc" is the "info".

◆ misc_to_attr

TERM_COLOR misc_to_attr[256]

◆ misc_to_char

SYMBOL_CODE misc_to_char[256]

◆ tval_to_attr

TERM_COLOR tval_to_attr[128]

◆ tval_to_char

SYMBOL_CODE tval_to_char[128]

◆ window_flag_desc

const concptr window_flag_desc[32]

サブウィンドウ名称テーブル

Certain "screens" always use the main screen, including News, Birth,
Dungeon, Tomb-stone, High-scores, Macros, Colors, Visuals, Options.
Later, special flags may allow sub-windows to "steal" stuff from the
main window, including File dump (help), File dump (artifacts, uniques),
Character screen, Small scale map, Previous Messages, Store screen, etc.
The "ctrl-i" (tab) command flips the "Display inven/equip" and "Display
equip/inven" flags for all windows.
The "ctrl-g" command (or pseudo-command) should perhaps grab a snapshot
of the main screen into any interested windows.