Hengband
2.2.1
|
マクロ定義 | |
#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 |
#define TOKENIZE_CHECKQUOTE 0x01 /* Special handling of single quotes */ |
errr check_load | ( | void | ) |
Angbandプレイ禁止ホストのチェック / Handle CHECK_LOAD
errr check_load_init | ( | void | ) |
Angbandプレイ禁止ホストの設定初期化 / Initialize CHECK_LOAD
errr check_time | ( | void | ) |
Angbandプレイ禁止時刻をチェック / Handle CHECK_TIME
errr check_time_init | ( | void | ) |
Angbandプレイ禁止時刻の初期化 / Initialize CHECK_TIME
u32b counts_read | ( | int | where | ) |
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
void display_player_equippy | ( | TERM_LEN | y, |
TERM_LEN | x, | ||
BIT_FLAGS16 | mode | ||
) |
プレイヤーの装備一覧をシンボルで並べる Equippy chars
y | 表示するコンソールの行 |
x | 表示するコンソールの列 |
mode | オプション |
void do_cmd_help | ( | void | ) |
void do_cmd_save_and_exit | ( | void | ) |
void do_cmd_save_game | ( | int | is_autosave | ) |
void exit_game_panic | ( | void | ) |
プレイヤーステータスをファイルダンプ出力する 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.
void get_name | ( | void | ) |
errr make_character_dump | ( | FILE * | fff | ) |
ダンプ出力のメインルーチン Output the character dump to a file
fff | ファイルポインタ |
void print_equippy | ( | void | ) |
プレイヤーの装備一覧シンボルを固定位置に表示する
void print_tomb | ( | void | ) |
void process_player_name | ( | bool | sf | ) |
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.
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>
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
void safe_setuid_drop | ( | void | ) |
ファイルのドロップパーミッションチェック / Hack – drop permissions
void safe_setuid_grab | ( | void | ) |
ファイルのグラブパーミッションチェック / Hack – grab permissions
void show_info | ( | void | ) |
void signals_handle_tstp | ( | void | ) |
void signals_ignore_tstp | ( | void | ) |
void signals_init | ( | void | ) |
各種データテキストをトークン単位に分解する / 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
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_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_SCRIPT |
Script files These files are portable between platforms.
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
char savefile[1024] |
char savefile_base[40] |
s16b signal_count |