Hengband  2.2.1
データ構造 | マクロ定義 | 型定義 | 関数 | 変数
files.c ファイル

ファイル入出力管理 / Purpose: code dealing with files (and death) [詳解]

#include "angband.h"
#include "util.h"
#include "files.h"
#include "core.h"
#include "birth.h"
#include "bldg.h"
#include "cmd-magiceat.h"
#include "cmd-dump.h"
#include "world.h"
#include "player-inventory.h"
#include "player-race.h"
#include "player-status.h"
#include "player-move.h"
#include "player-class.h"
#include "player-skill.h"
#include "player-personality.h"
#include "player-sex.h"
#include "player-effects.h"
#include "sort.h"
#include "mutation.h"
#include "quest.h"
#include "store.h"
#include "artifact.h"
#include "avatar.h"
#include "shoot.h"
#include "patron.h"
#include "monster.h"
#include "monster-process.h"
#include "monster-status.h"
#include "object-flavor.h"
#include "object-hook.h"
#include "realm.h"
#include "realm-hex.h"
#include "cmd-pet.h"
#include "spells.h"
#include "term.h"
#include "view-mainwindow.h"
#include "floor-events.h"
#include "floor-town.h"
#include "dungeon-file.h"
#include "init.h"
#include "monster-spell.h"
#include "floor.h"
#include "dungeon.h"
#include "melee.h"
#include "objectkind.h"
#include "autopick.h"
#include "save.h"
#include "realm-song.h"
#include <signal.h>

データ構造

struct  named_num
 
struct  all_player_flags
 

マクロ定義

#define PREF_TYPE_NORMAL   0
 
#define PREF_TYPE_AUTOPICK   1
 
#define PREF_TYPE_HISTPREF   2
 
#define ENTRY_BARE_HAND   0
 
#define ENTRY_TWO_HANDS   1
 
#define ENTRY_RIGHT_HAND1   2
 
#define ENTRY_LEFT_HAND1   3
 
#define ENTRY_LEFT_HAND2   4
 
#define ENTRY_RIGHT_HAND2   5
 
#define ENTRY_POSTURE   6
 
#define ENTRY_SHOOT_HIT_DAM   7
 
#define ENTRY_SHOOT_POWER   8
 
#define ENTRY_SPEED   9
 
#define ENTRY_BASE_AC   10
 
#define ENTRY_LEVEL   11
 
#define ENTRY_CUR_EXP   12
 
#define ENTRY_MAX_EXP   13
 
#define ENTRY_EXP_TO_ADV   14
 
#define ENTRY_GOLD   15
 
#define ENTRY_DAY   16
 
#define ENTRY_HP   17
 
#define ENTRY_SP   18
 
#define ENTRY_PLAY_TIME   19
 
#define ENTRY_SKILL_FIGHT   20
 
#define ENTRY_SKILL_SHOOT   21
 
#define ENTRY_SKILL_SAVING   22
 
#define ENTRY_SKILL_STEALTH   23
 
#define ENTRY_SKILL_PERCEP   24
 
#define ENTRY_SKILL_SEARCH   25
 
#define ENTRY_SKILL_DISARM   26
 
#define ENTRY_SKILL_DEVICE   27
 
#define ENTRY_SKILL_DIG   45
 
#define ENTRY_BLOWS   28
 
#define ENTRY_SHOTS   29
 
#define ENTRY_AVG_DMG   30
 
#define ENTRY_INFRA   31
 
#define ENTRY_NAME   32
 
#define ENTRY_SEX   33
 
#define ENTRY_RACE   34
 
#define ENTRY_CLASS   35
 
#define ENTRY_REALM   36
 
#define ENTRY_PATRON   37
 
#define ENTRY_AGE   38
 
#define ENTRY_HEIGHT   39
 
#define ENTRY_WEIGHT   40
 
#define ENTRY_SOCIAL   41
 
#define ENTRY_ALIGN   42
 
#define ENTRY_EXP_ANDR   43
 
#define ENTRY_EXP_TO_ADV_ANDR   44
 
#define DP_CURSE   0x01
 
#define DP_IMM   0x02
 
#define DP_WP   0x08
 
#define GRAVE_LINE_WIDTH   31
 

型定義

typedef struct named_num named_num
 

関数

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 [詳解]
 
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()" [詳解]
 
static errr process_pref_file_aux (concptr name, int preftype)
 process_pref_fileのサブルーチン / Open the "user pref file" and parse it. [詳解]
 
errr process_pref_file (concptr name)
 pref設定ファイルを読み込み設定を反映させる / Process the "user pref file" with the given name [詳解]
 
errr check_time (void)
 Angbandプレイ禁止時刻をチェック / Handle CHECK_TIME [詳解]
 
errr check_time_init (void)
 Angbandプレイ禁止時刻の初期化 / Initialize CHECK_TIME [詳解]
 
errr check_load (void)
 Angbandプレイ禁止ホストのチェック / Handle CHECK_LOAD [詳解]
 
errr check_load_init (void)
 Angbandプレイ禁止ホストの設定初期化 / Initialize CHECK_LOAD [詳解]
 
static void display_player_one_line (int entry, concptr val, TERM_COLOR attr)
 プレイヤーのステータス1種を出力する [詳解]
 
static void display_player_melee_bonus (int hand, int hand_entry)
 プレイヤーの打撃能力修正を表示する [詳解]
 
static void display_player_middle (player_type *creature_ptr)
 プレイヤーステータス表示の中央部分を表示するサブルーチン Prints the following information on the screen. [詳解]
 
static concptr likert (int x, int y)
 技能ランクの表示基準を定める Returns a "rating" of x depending on y [詳解]
 
static void display_player_various (void)
 プレイヤーステータスの1ページ目各種詳細をまとめて表示するサブルーチン Prints ratings on certain abilities [詳解]
 
static void player_flags (player_type *creature_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE])
 プレイヤーの職業、種族に応じた耐性フラグを返す Prints ratings on certain abilities [詳解]
 
static void tim_player_flags (player_type *creature_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE])
 プレイヤーの一時的魔法効果による耐性を返す Prints ratings on certain abilities [詳解]
 
void display_player_equippy (TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode)
 プレイヤーの装備一覧をシンボルで並べる Equippy chars [詳解]
 
static void known_obj_immunity (BIT_FLAGS flgs[TR_FLAG_SIZE])
 プレイヤーの装備による免疫フラグを返す [詳解]
 
static void player_immunity (BIT_FLAGS flgs[TR_FLAG_SIZE])
 プレイヤーの種族による免疫フラグを返す [詳解]
 
static void tim_player_immunity (BIT_FLAGS flgs[TR_FLAG_SIZE])
 プレイヤーの一時的魔法効果による免疫フラグを返す [詳解]
 
static void player_vuln_flags (BIT_FLAGS flgs[TR_FLAG_SIZE])
 プレイヤーの種族による弱点フラグを返す [詳解]
 
static void display_flag_aux (TERM_LEN row, TERM_LEN col, concptr header, int flag1, all_player_flags *f, u16b mode)
 プレイヤーの特性フラグ一種を表示するサブルーチン / Helper function, see below [詳解]
 
static void display_player_flag_info (void)
 プレイヤーの特性フラグ一覧表示1 / Special display, part 1 [詳解]
 
static void display_player_other_flag_info (void)
 プレイヤーの特性フラグ一覧表示2 / Special display, part 2 [詳解]
 
static void display_player_misc_info (void)
 プレイヤーの特性フラグ一覧表示2a / Special display, part 2a [詳解]
 
static void display_player_stat_info (player_type *creature_ptr)
 プレイヤーの特性フラグ一覧表示2b / Special display, part 2b [詳解]
 
void display_player (player_type *creature_ptr, int mode)
 プレイヤーのステータス表示メイン処理 Display the character on the screen (various modes) [詳解]
 
static void dump_aux_display_player (FILE *fff)
 プレイヤーのステータス表示をファイルにダンプする [詳解]
 
static void dump_aux_pet (FILE *fff)
 プレイヤーのペット情報をファイルにダンプする [詳解]
 
static void dump_aux_class_special (FILE *fff)
 プレイヤーの職業能力情報をファイルにダンプする [詳解]
 
static void dump_aux_quest (FILE *fff)
 クエスト情報をファイルにダンプする [詳解]
 
static void dump_aux_last_message (FILE *fff)
 死の直前メッセージ並びに遺言をファイルにダンプする [詳解]
 
static void dump_aux_recall (FILE *fff)
 帰還場所情報をファイルにダンプする [詳解]
 
static void dump_aux_options (FILE *fff)
 オプション情報をファイルにダンプする [詳解]
 
static void dump_aux_arena (FILE *fff)
 闘技場の情報をファイルにダンプする [詳解]
 
static void dump_aux_monsters (FILE *fff)
 撃破モンスターの情報をファイルにダンプする [詳解]
 
static void dump_aux_race_history (FILE *fff)
 元種族情報をファイルにダンプする [詳解]
 
static void dump_aux_realm_history (FILE *fff)
 元魔法領域情報をファイルにダンプする [詳解]
 
static void dump_aux_virtues (FILE *fff)
 徳の情報をファイルにダンプする [詳解]
 
static void dump_aux_mutations (FILE *fff)
 突然変異の情報をファイルにダンプする [詳解]
 
static void dump_aux_equipment_inventory (FILE *fff)
 所持品の情報をファイルにダンプする [詳解]
 
static void dump_aux_home_museum (FILE *fff)
 我が家と博物館のオブジェクト情報をファイルにダンプする [詳解]
 
errr make_character_dump (FILE *fff)
 ダンプ出力のメインルーチン Output the character dump to a file [詳解]
 
errr file_character (concptr name)
 プレイヤーステータスをファイルダンプ出力する Hack – Dump a character description file [詳解]
 
static void show_file_aux_line (concptr str, int cy, concptr shower)
 ファイル内容の一行をコンソールに出力する Display single line of on-line help file [詳解]
 

変数

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
 
char savefile [1024]
 
char savefile_base [40]
 
static named_num gf_desc []
 
struct {
   int   col
 
   int   row
 
   int   len
 
   char   header [20]
 
disp_player_line []
 
static TERM_COLOR likert_color = TERM_WHITE
 

詳解

ファイル入出力管理 / Purpose: code dealing with files (and death)

日付
2014/01/28
著者
Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
This software may be copied and distributed for educational, research,
and not for profit purposes provided that this copyright and statement
are included in all such copies.  Other copyrights may also apply.
2014 Deskull rearranged comment for Doxygen.

マクロ定義詳解

◆ DP_CURSE

#define DP_CURSE   0x01

◆ DP_IMM

#define DP_IMM   0x02

◆ DP_WP

#define DP_WP   0x08

◆ ENTRY_AGE

#define ENTRY_AGE   38

◆ ENTRY_ALIGN

#define ENTRY_ALIGN   42

◆ ENTRY_AVG_DMG

#define ENTRY_AVG_DMG   30

◆ ENTRY_BARE_HAND

#define ENTRY_BARE_HAND   0

◆ ENTRY_BASE_AC

#define ENTRY_BASE_AC   10

◆ ENTRY_BLOWS

#define ENTRY_BLOWS   28

◆ ENTRY_CLASS

#define ENTRY_CLASS   35

◆ ENTRY_CUR_EXP

#define ENTRY_CUR_EXP   12

◆ ENTRY_DAY

#define ENTRY_DAY   16

◆ ENTRY_EXP_ANDR

#define ENTRY_EXP_ANDR   43

◆ ENTRY_EXP_TO_ADV

#define ENTRY_EXP_TO_ADV   14

◆ ENTRY_EXP_TO_ADV_ANDR

#define ENTRY_EXP_TO_ADV_ANDR   44

◆ ENTRY_GOLD

#define ENTRY_GOLD   15

◆ ENTRY_HEIGHT

#define ENTRY_HEIGHT   39

◆ ENTRY_HP

#define ENTRY_HP   17

◆ ENTRY_INFRA

#define ENTRY_INFRA   31

◆ ENTRY_LEFT_HAND1

#define ENTRY_LEFT_HAND1   3

◆ ENTRY_LEFT_HAND2

#define ENTRY_LEFT_HAND2   4

◆ ENTRY_LEVEL

#define ENTRY_LEVEL   11

◆ ENTRY_MAX_EXP

#define ENTRY_MAX_EXP   13

◆ ENTRY_NAME

#define ENTRY_NAME   32

◆ ENTRY_PATRON

#define ENTRY_PATRON   37

◆ ENTRY_PLAY_TIME

#define ENTRY_PLAY_TIME   19

◆ ENTRY_POSTURE

#define ENTRY_POSTURE   6

◆ ENTRY_RACE

#define ENTRY_RACE   34

◆ ENTRY_REALM

#define ENTRY_REALM   36

◆ ENTRY_RIGHT_HAND1

#define ENTRY_RIGHT_HAND1   2

◆ ENTRY_RIGHT_HAND2

#define ENTRY_RIGHT_HAND2   5

◆ ENTRY_SEX

#define ENTRY_SEX   33

◆ ENTRY_SHOOT_HIT_DAM

#define ENTRY_SHOOT_HIT_DAM   7

◆ ENTRY_SHOOT_POWER

#define ENTRY_SHOOT_POWER   8

◆ ENTRY_SHOTS

#define ENTRY_SHOTS   29

◆ ENTRY_SKILL_DEVICE

#define ENTRY_SKILL_DEVICE   27

◆ ENTRY_SKILL_DIG

#define ENTRY_SKILL_DIG   45

◆ ENTRY_SKILL_DISARM

#define ENTRY_SKILL_DISARM   26

◆ ENTRY_SKILL_FIGHT

#define ENTRY_SKILL_FIGHT   20

◆ ENTRY_SKILL_PERCEP

#define ENTRY_SKILL_PERCEP   24

◆ ENTRY_SKILL_SAVING

#define ENTRY_SKILL_SAVING   22

◆ ENTRY_SKILL_SEARCH

#define ENTRY_SKILL_SEARCH   25

◆ ENTRY_SKILL_SHOOT

#define ENTRY_SKILL_SHOOT   21

◆ ENTRY_SKILL_STEALTH

#define ENTRY_SKILL_STEALTH   23

◆ ENTRY_SOCIAL

#define ENTRY_SOCIAL   41

◆ ENTRY_SP

#define ENTRY_SP   18

◆ ENTRY_SPEED

#define ENTRY_SPEED   9

◆ ENTRY_TWO_HANDS

#define ENTRY_TWO_HANDS   1

◆ ENTRY_WEIGHT

#define ENTRY_WEIGHT   40

◆ GRAVE_LINE_WIDTH

#define GRAVE_LINE_WIDTH   31

◆ PREF_TYPE_AUTOPICK

#define PREF_TYPE_AUTOPICK   1

◆ PREF_TYPE_HISTPREF

#define PREF_TYPE_HISTPREF   2

◆ PREF_TYPE_NORMAL

#define PREF_TYPE_NORMAL   0

型定義詳解

◆ named_num

typedef struct named_num named_num

関数詳解

◆ 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

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

◆ display_flag_aux()

static void display_flag_aux ( TERM_LEN  row,
TERM_LEN  col,
concptr  header,
int  flag1,
all_player_flags f,
u16b  mode 
)
static

プレイヤーの特性フラグ一種を表示するサブルーチン / Helper function, see below

引数
rowコンソール表示位置の左上行
colコンソール表示位置の左上列
headerコンソール上で表示する特性名
flag1参照する特性ID
fプレイヤーの特性情報構造体
mode表示オプション
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ 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オプション
戻り値
なし
呼び出し関係図:

◆ display_player_flag_info()

static void display_player_flag_info ( void  )
static

プレイヤーの特性フラグ一覧表示1 / Special display, part 1

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

◆ display_player_melee_bonus()

static void display_player_melee_bonus ( int  hand,
int  hand_entry 
)
static

プレイヤーの打撃能力修正を表示する

引数
hand武器の装備部位ID
hand_entry項目ID
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ display_player_middle()

static void display_player_middle ( player_type creature_ptr)
static

プレイヤーステータス表示の中央部分を表示するサブルーチン Prints the following information on the screen.

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

◆ display_player_misc_info()

static void display_player_misc_info ( void  )
static

プレイヤーの特性フラグ一覧表示2a / Special display, part 2a

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

◆ display_player_one_line()

static void display_player_one_line ( int  entry,
concptr  val,
TERM_COLOR  attr 
)
static

プレイヤーのステータス1種を出力する

引数
entry項目ID
val値を保管した文字列ポインタ
attr項目表示の色
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ display_player_other_flag_info()

static void display_player_other_flag_info ( void  )
static

プレイヤーの特性フラグ一覧表示2 / Special display, part 2

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

◆ display_player_stat_info()

static void display_player_stat_info ( player_type creature_ptr)
static

プレイヤーの特性フラグ一覧表示2b / Special display, part 2b

戻り値
なし
How to print out the modifications and sustains.
Positive mods with no sustain will be light green.
Positive mods with a sustain will be dark green.
Sustains (with no modification) will be a dark green 's'.
Negative mods (from a curse) will be red.
Huge mods (>9), like from MICoMorgoth, will be a '*'
No mod, no sustain, will be a slate '.'
呼び出し関係図:
被呼び出し関係図:

◆ display_player_various()

static void display_player_various ( void  )
static

プレイヤーステータスの1ページ目各種詳細をまとめて表示するサブルーチン Prints ratings on certain abilities

戻り値
なし

This code is "imitated" elsewhere to "dump" a character sheet.

呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_arena()

static void dump_aux_arena ( FILE *  fff)
static

闘技場の情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
被呼び出し関係図:

◆ dump_aux_class_special()

static void dump_aux_class_special ( FILE *  fff)
static

プレイヤーの職業能力情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_display_player()

static void dump_aux_display_player ( FILE *  fff)
static

プレイヤーのステータス表示をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_equipment_inventory()

static void dump_aux_equipment_inventory ( FILE *  fff)
static

所持品の情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_home_museum()

static void dump_aux_home_museum ( FILE *  fff)
static

我が家と博物館のオブジェクト情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_last_message()

static void dump_aux_last_message ( FILE *  fff)
static

死の直前メッセージ並びに遺言をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_monsters()

static void dump_aux_monsters ( FILE *  fff)
static

撃破モンスターの情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_mutations()

static void dump_aux_mutations ( FILE *  fff)
static

突然変異の情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_options()

static void dump_aux_options ( FILE *  fff)
static

オプション情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
被呼び出し関係図:

◆ dump_aux_pet()

static void dump_aux_pet ( FILE *  fff)
static

プレイヤーのペット情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_quest()

static void dump_aux_quest ( FILE *  fff)
static

クエスト情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ dump_aux_race_history()

static void dump_aux_race_history ( FILE *  fff)
static

元種族情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
被呼び出し関係図:

◆ dump_aux_realm_history()

static void dump_aux_realm_history ( FILE *  fff)
static

元魔法領域情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
被呼び出し関係図:

◆ dump_aux_recall()

static void dump_aux_recall ( FILE *  fff)
static

帰還場所情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
被呼び出し関係図:

◆ dump_aux_virtues()

static void dump_aux_virtues ( FILE *  fff)
static

徳の情報をファイルにダンプする

引数
fffファイルポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ 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.

呼び出し関係図:

◆ known_obj_immunity()

static void known_obj_immunity ( BIT_FLAGS  flgs[TR_FLAG_SIZE])
static

プレイヤーの装備による免疫フラグを返す

引数
flgsフラグを保管する配列
戻り値
なし
todo:
xtra1.c周りと多重実装になっているのを何とかする
呼び出し関係図:
被呼び出し関係図:

◆ likert()

static concptr likert ( int  x,
int  y 
)
static

技能ランクの表示基準を定める Returns a "rating" of x depending on y

引数
x技能値
y技能値に対するランク基準比
戻り値
なし
被呼び出し関係図:

◆ make_character_dump()

errr make_character_dump ( FILE *  fff)

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

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

◆ player_flags()

static void player_flags ( player_type creature_ptr,
BIT_FLAGS  flgs[TR_FLAG_SIZE] 
)
static

プレイヤーの職業、種族に応じた耐性フラグを返す Prints ratings on certain abilities

引数
creature_ptr参照元クリーチャーポインタ
flgsフラグを保管する配列
戻り値
なし

Obtain the "flags" for the player as if he was an item

todo:
xtra1.c周りと多重実装になっているのを何とかする
呼び出し関係図:
被呼び出し関係図:

◆ player_immunity()

static void player_immunity ( BIT_FLAGS  flgs[TR_FLAG_SIZE])
static

プレイヤーの種族による免疫フラグを返す

引数
flgsフラグを保管する配列
戻り値
なし
todo:
xtra1.c周りと多重実装になっているのを何とかする
被呼び出し関係図:

◆ player_vuln_flags()

static void player_vuln_flags ( BIT_FLAGS  flgs[TR_FLAG_SIZE])
static

プレイヤーの種族による弱点フラグを返す

引数
flgsフラグを保管する配列
戻り値
なし
todo:
xtra1.c周りと多重実装になっているのを何とかする
被呼び出し関係図:

◆ 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_aux()

static errr process_pref_file_aux ( concptr  name,
int  preftype 
)
static

process_pref_fileのサブルーチン / Open the "user pref file" and parse it.

引数
name読み込むファイル名
preftypeprefファイルのタイプ
戻り値
エラーコード
Input:
  v: output buffer array
  f: final character
Output:
  result
呼び出し関係図:
被呼び出し関係図:

◆ 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_aux_line()

static void show_file_aux_line ( concptr  str,
int  cy,
concptr  shower 
)
static

ファイル内容の一行をコンソールに出力する Display single line of on-line help file

引数
str出力する文字列
cyコンソールの行
shower確認中
戻り値
なし
You can insert some special color tag to change text color.
Such as...
WHITETEXT [[[[y|SOME TEXT WHICH IS DISPLAYED IN YELLOW| WHITETEXT
A colored segment is between "[[[[y|" and the last "|".
You can use any single character in place of the "|".
呼び出し関係図:

◆ tim_player_flags()

static void tim_player_flags ( player_type creature_ptr,
BIT_FLAGS  flgs[TR_FLAG_SIZE] 
)
static

プレイヤーの一時的魔法効果による耐性を返す Prints ratings on certain abilities

引数
flgsフラグを保管する配列
戻り値
なし
todo:
xtra1.c周りと多重実装になっているのを何とかする
被呼び出し関係図:

◆ tim_player_immunity()

static void tim_player_immunity ( BIT_FLAGS  flgs[TR_FLAG_SIZE])
static

プレイヤーの一時的魔法効果による免疫フラグを返す

引数
flgsフラグを保管する配列
戻り値
なし
todo:
xtra1.c周りと多重実装になっているのを何とかする
被呼び出し関係図:

◆ 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

◆ col

int col

◆ disp_player_line

struct { ... } disp_player_line[]

◆ gf_desc

named_num gf_desc[]
static

◆ header

char header[20]

◆ len

int len

◆ likert_color

TERM_COLOR likert_color = TERM_WHITE
static

◆ row

int row

◆ savefile

char savefile[1024]

◆ savefile_base

char savefile_base[40]

◆ signal_count

s16b signal_count