Hengband  2.2.1
マクロ定義 | 関数 | 変数
files.h ファイル
被依存関係図:

[ソースコード]

マクロ定義

#define TOKENIZE_CHECKQUOTE   0x01 /* Special handling of single quotes */
 

関数

void safe_setuid_drop (void)
 ファイルのドロップパーミッションチェック / Hack – drop permissions [詳解]
 
void safe_setuid_grab (void)
 ファイルのグラブパーミッションチェック / Hack – grab permissions [詳解]
 
s16b tokenize (char *buf, s16b num, char **tokens, BIT_FLAGS mode)
 各種データテキストをトークン単位に分解する / Extract the first few "tokens" from a buffer [詳解]
 
void display_player (player_type *creature_ptr, int mode)
 プレイヤーのステータス表示メイン処理 Display the character on the screen (various modes) [詳解]
 
errr make_character_dump (FILE *fff)
 ダンプ出力のメインルーチン Output the character dump to a file [詳解]
 
errr file_character (concptr name)
 プレイヤーステータスをファイルダンプ出力する Hack – Dump a character description file [詳解]
 
errr process_pref_file_command (char *buf)
 設定ファイルの各行から各種テキスト情報を取得する / Parse a sub-file of the "extra info" (format shown below) [詳解]
 
concptr process_pref_file_expr (char **sp, char *fp)
 process_pref_fileのサブルーチンとして条件分岐処理の解釈と結果を返す / Helper function for "process_pref_file()" [詳解]
 
errr process_pref_file (concptr name)
 pref設定ファイルを読み込み設定を反映させる / Process the "user pref file" with the given name [詳解]
 
errr process_autopick_file (concptr name)
 
errr process_histpref_file (concptr name)
 
void print_equippy (void)
 プレイヤーの装備一覧シンボルを固定位置に表示する [詳解]
 
void display_player_equippy (TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode)
 プレイヤーの装備一覧をシンボルで並べる Equippy chars [詳解]
 
errr check_time_init (void)
 Angbandプレイ禁止時刻の初期化 / Initialize CHECK_TIME [詳解]
 
errr check_load_init (void)
 Angbandプレイ禁止ホストの設定初期化 / Initialize CHECK_LOAD [詳解]
 
errr check_time (void)
 Angbandプレイ禁止時刻をチェック / Handle CHECK_TIME [詳解]
 
errr check_load (void)
 Angbandプレイ禁止ホストのチェック / Handle CHECK_LOAD [詳解]
 
bool show_file (bool show_version, concptr name, concptr what, int line, BIT_FLAGS mode)
 
void do_cmd_help (void)
 
void process_player_name (bool sf)
 
void get_name (void)
 
void do_cmd_save_game (int is_autosave)
 
void do_cmd_save_and_exit (void)
 
void exit_game_panic (void)
 
void signals_ignore_tstp (void)
 
void signals_handle_tstp (void)
 
void signals_init (void)
 
errr get_rnd_line (concptr file_name, int entry, char *output)
 
void print_tomb (void)
 
void show_info (void)
 
errr counts_write (int where, u32b count)
 
u32b counts_read (int where)
 

変数

char savefile [1024]
 
char savefile_base [40]
 
concptr ANGBAND_DIR
 Path name: The main "lib" directory This variable is not actually used anywhere in the code [詳解]
 
concptr ANGBAND_DIR_APEX
 High score files (binary) These files may be portable between platforms [詳解]
 
concptr ANGBAND_DIR_BONE
 Bone files for player ghosts (ascii) These files are portable between platforms [詳解]
 
concptr ANGBAND_DIR_DATA
 Binary image files for the "*_info" arrays (binary) These files are not portable between platforms [詳解]
 
concptr ANGBAND_DIR_EDIT
 Textual template files for the "*_info" arrays (ascii) These files are portable between platforms [詳解]
 
concptr ANGBAND_DIR_SCRIPT
 Script files These files are portable between platforms. [詳解]
 
concptr ANGBAND_DIR_FILE
 Various extra files (ascii) These files may be portable between platforms [詳解]
 
concptr ANGBAND_DIR_HELP
 Help files (normal) for the online help (ascii) These files are portable between platforms [詳解]
 
concptr ANGBAND_DIR_INFO
 Help files (spoilers) for the online help (ascii) These files are portable between platforms [詳解]
 
concptr ANGBAND_DIR_PREF
 Default user "preference" files (ascii) These files are rarely portable between platforms [詳解]
 
concptr ANGBAND_DIR_SAVE
 Savefiles for current characters (binary) [詳解]
 
concptr ANGBAND_DIR_USER
 User "preference" files (ascii) These files are rarely portable between platforms [詳解]
 
concptr ANGBAND_DIR_XTRA
 Various extra files (binary) These files are rarely portable between platforms [詳解]
 
s16b signal_count
 

マクロ定義詳解

◆ TOKENIZE_CHECKQUOTE

#define TOKENIZE_CHECKQUOTE   0x01 /* Special handling of single quotes */

関数詳解

◆ check_load()

errr check_load ( void  )

Angbandプレイ禁止ホストのチェック / Handle CHECK_LOAD

戻り値
エラーコード

◆ check_load_init()

errr check_load_init ( void  )

Angbandプレイ禁止ホストの設定初期化 / Initialize CHECK_LOAD

戻り値
エラーコード
呼び出し関係図:

◆ check_time()

errr check_time ( void  )

Angbandプレイ禁止時刻をチェック / Handle CHECK_TIME

戻り値
エラーコード

◆ check_time_init()

errr check_time_init ( void  )

Angbandプレイ禁止時刻の初期化 / Initialize CHECK_TIME

戻り値
エラーコード
呼び出し関係図:

◆ counts_read()

u32b counts_read ( int  where)
被呼び出し関係図:

◆ counts_write()

errr counts_write ( int  where,
u32b  count 
)
被呼び出し関係図:

◆ display_player()

void display_player ( player_type creature_ptr,
int  mode 
)

プレイヤーのステータス表示メイン処理 Display the character on the screen (various modes)

引数
mode表示モードID
戻り値
なし
The top one and bottom two lines are left blank.
Mode 0 = standard display with skills
Mode 1 = standard display with history
Mode 2 = summary of various things
Mode 3 = summary of various things (part 2)
Mode 4 = mutations
呼び出し関係図:

◆ display_player_equippy()

void display_player_equippy ( TERM_LEN  y,
TERM_LEN  x,
BIT_FLAGS16  mode 
)

プレイヤーの装備一覧をシンボルで並べる Equippy chars

引数
y表示するコンソールの行
x表示するコンソールの列
modeオプション
戻り値
なし
呼び出し関係図:

◆ do_cmd_help()

void do_cmd_help ( void  )
被呼び出し関係図:

◆ do_cmd_save_and_exit()

void do_cmd_save_and_exit ( void  )
被呼び出し関係図:

◆ do_cmd_save_game()

void do_cmd_save_game ( int  is_autosave)
被呼び出し関係図:

◆ exit_game_panic()

void exit_game_panic ( void  )

◆ file_character()

errr file_character ( concptr  name)

プレイヤーステータスをファイルダンプ出力する Hack – Dump a character description file

引数
name出力ファイル名
戻り値
エラーコード

Allow the "full" flag to dump additional info, and trigger its usage from various places in the code.

呼び出し関係図:

◆ get_name()

void get_name ( void  )
被呼び出し関係図:

◆ get_rnd_line()

errr get_rnd_line ( concptr  file_name,
int  entry,
char *  output 
)
被呼び出し関係図:

◆ make_character_dump()

errr make_character_dump ( FILE *  fff)

ダンプ出力のメインルーチン Output the character dump to a file

引数
fffファイルポインタ
戻り値
エラーコード
呼び出し関係図:

◆ print_equippy()

void print_equippy ( void  )

プレイヤーの装備一覧シンボルを固定位置に表示する

戻り値
なし
呼び出し関係図:

◆ print_tomb()

void print_tomb ( void  )
被呼び出し関係図:

◆ process_autopick_file()

errr process_autopick_file ( concptr  name)
被呼び出し関係図:

◆ process_histpref_file()

errr process_histpref_file ( concptr  name)
被呼び出し関係図:

◆ process_player_name()

void process_player_name ( bool  sf)
被呼び出し関係図:

◆ process_pref_file()

errr process_pref_file ( concptr  name)

pref設定ファイルを読み込み設定を反映させる / Process the "user pref file" with the given name

引数
name読み込むファイル名
戻り値
エラーコード
See the functions above for a list of legal "commands".
We also accept the special "?" and "%" directives, which
allow conditional evaluation and filename inclusion.
呼び出し関係図:

◆ process_pref_file_command()

errr process_pref_file_command ( char *  buf)

設定ファイルの各行から各種テキスト情報を取得する / Parse a sub-file of the "extra info" (format shown below)

引数
bufデータテキストの参照ポインタ
戻り値
エラーコード
Each "action" line has an "action symbol" in the first column,
followed by a colon, followed by some command specific info,
usually in the form of "tokens" separated by colons or slashes.
Blank lines, lines starting with white space, and lines starting
with pound signs ("#") are ignored (as comments).
Note the use of "tokenize()" to allow the use of both colons and
slashes as delimeters, while still allowing final tokens which
may contain any characters including "delimiters".
Note the use of "strtol()" to allow all "integers" to be encoded
in decimal, hexidecimal, or octal form.
Note that "monster zero" is used for the "player" attr/char, "object
zero" will be used for the "stack" attr/char, and "feature zero" is
used for the "nothing" attr/char.
Parse another file recursively, see below for details
  %:<filename>
Specify the attr/char values for "monsters" by race index
  R:<num>:<a>:<c>
Specify the attr/char values for "objects" by kind index
  K:<num>:<a>:<c>
Specify the attr/char values for "features" by feature index
  F:<num>:<a>:<c>
Specify the attr/char values for unaware "objects" by kind tval
  U:<tv>:<a>:<c>
Specify the attr/char values for p_ptr->inventory_list "objects" by kind tval
  E:<tv>:<a>:<c>
Define a macro action, given an encoded macro action
  A:<str>
Create a normal macro, given an encoded macro trigger
  P:<str>
Create a command macro, given an encoded macro trigger
  C:<str>
Create a keyset mapping
  S:<key>:<key>:<dir>
Turn an option off, given its name
  X:<str>
Turn an option on, given its name
  Y:<str>
Specify visual information, given an index, and some data
  V:<num>:<kv>:<rv>:<gv>:<bv>
Specify the set of colors to use when drawing a zapped spell
  Z:<type>:<str>
Specify a macro trigger template and macro trigger names.
  T:<template>:<modifier chr>:<modifier name1>:<modifier name2>:...
  T:<trigger>:<keycode>:<shift-keycode>
呼び出し関係図:

◆ process_pref_file_expr()

concptr process_pref_file_expr ( char **  sp,
char *  fp 
)

process_pref_fileのサブルーチンとして条件分岐処理の解釈と結果を返す / Helper function for "process_pref_file()"

引数
spテキスト文字列の参照ポインタ
fp再帰中のポインタ参照
戻り値
Input:
  v: output buffer array
  f: final character
Output:
  result
呼び出し関係図:

◆ safe_setuid_drop()

void safe_setuid_drop ( void  )

ファイルのドロップパーミッションチェック / Hack – drop permissions

呼び出し関係図:

◆ safe_setuid_grab()

void safe_setuid_grab ( void  )

ファイルのグラブパーミッションチェック / Hack – grab permissions

呼び出し関係図:

◆ show_file()

bool show_file ( bool  show_version,
concptr  name,
concptr  what,
int  line,
BIT_FLAGS  mode 
)
被呼び出し関係図:

◆ show_info()

void show_info ( void  )
被呼び出し関係図:

◆ signals_handle_tstp()

void signals_handle_tstp ( void  )
被呼び出し関係図:

◆ signals_ignore_tstp()

void signals_ignore_tstp ( void  )
被呼び出し関係図:

◆ signals_init()

void signals_init ( void  )
被呼び出し関係図:

◆ tokenize()

s16b tokenize ( char *  buf,
s16b  num,
char **  tokens,
BIT_FLAGS  mode 
)

各種データテキストをトークン単位に分解する / Extract the first few "tokens" from a buffer

引数
bufデータテキストの参照ポインタ
numトークンの数
tokensトークンを保管する文字列参照ポインタ配列
modeオプション
戻り値
解釈した文字列数
This function uses "colon" and "slash" as the delimeter characters.
We never extract more than "num" tokens.  The "last" token may include
"delimeter" characters, allowing the buffer to include a "string" token.
We save pointers to the tokens in "tokens", and return the number found.
Hack -- Attempt to handle the 'c' character formalism
Hack -- An empty buffer, or a final delimeter, yields an "empty" token.
Hack -- We will always extract at least one token

変数詳解

◆ ANGBAND_DIR

concptr ANGBAND_DIR

Path name: The main "lib" directory This variable is not actually used anywhere in the code

◆ ANGBAND_DIR_APEX

concptr ANGBAND_DIR_APEX

High score files (binary) These files may be portable between platforms

◆ ANGBAND_DIR_BONE

concptr ANGBAND_DIR_BONE

Bone files for player ghosts (ascii) These files are portable between platforms

◆ ANGBAND_DIR_DATA

concptr ANGBAND_DIR_DATA

Binary image files for the "*_info" arrays (binary) These files are not portable between platforms

◆ ANGBAND_DIR_EDIT

concptr ANGBAND_DIR_EDIT

Textual template files for the "*_info" arrays (ascii) These files are portable between platforms

◆ ANGBAND_DIR_FILE

concptr ANGBAND_DIR_FILE

Various extra files (ascii) These files may be portable between platforms

◆ ANGBAND_DIR_HELP

concptr ANGBAND_DIR_HELP

Help files (normal) for the online help (ascii) These files are portable between platforms

◆ ANGBAND_DIR_INFO

concptr ANGBAND_DIR_INFO

Help files (spoilers) for the online help (ascii) These files are portable between platforms

◆ ANGBAND_DIR_PREF

concptr ANGBAND_DIR_PREF

Default user "preference" files (ascii) These files are rarely portable between platforms

◆ ANGBAND_DIR_SAVE

concptr ANGBAND_DIR_SAVE

Savefiles for current characters (binary)

◆ ANGBAND_DIR_SCRIPT

concptr ANGBAND_DIR_SCRIPT

Script files These files are portable between platforms.

◆ ANGBAND_DIR_USER

concptr ANGBAND_DIR_USER

User "preference" files (ascii) These files are rarely portable between platforms

◆ ANGBAND_DIR_XTRA

concptr ANGBAND_DIR_XTRA

Various extra files (binary) These files are rarely portable between platforms

◆ savefile

char savefile[1024]

◆ savefile_base

char savefile_base[40]

◆ signal_count

s16b signal_count