|
void | init_file_paths (char *path) |
| 各データファイルを読み取るためのパスを取得する Find the default paths to all of our important sub-directories. [詳細]
|
|
static errr | check_modification_date (int fd, cptr template_file) |
| テキストファイルとrawファイルの更新時刻を比較する Find the default paths to all of our important sub-directories. [詳細]
|
|
static errr | init_info_raw (int fd, header *head) |
| rawファイルからのデータの読み取り処理 Initialize the "*_info" array, by parsing a binary "image" file [詳細]
|
|
static void | init_header (header *head, int num, int len) |
| ヘッダ構造体の更新 Initialize the header of an *_info.raw file. [詳細]
|
|
static errr | init_info (cptr filename, header *head, void **info, char **name, char **text, char **tag) |
| ヘッダ構造体の更新 Initialize the "*_info" array [詳細]
|
|
static errr | init_f_info (void) |
| 地形情報読み込みのメインルーチン / Initialize the "f_info" array [詳細]
|
|
static errr | init_k_info (void) |
| ベースアイテム情報読み込みのメインルーチン / Initialize the "k_info" array [詳細]
|
|
static errr | init_a_info (void) |
| 固定アーティファクト情報読み込みのメインルーチン / Initialize the "a_info" array [詳細]
|
|
static errr | init_e_info (void) |
| 固定アーティファクト情報読み込みのメインルーチン / Initialize the "e_info" array [詳細]
|
|
static errr | init_r_info (void) |
| モンスター種族情報読み込みのメインルーチン / Initialize the "r_info" array [詳細]
|
|
static errr | init_d_info (void) |
| ダンジョン情報読み込みのメインルーチン / Initialize the "d_info" array [詳細]
|
|
errr | init_v_info (void) |
| Vault情報読み込みのメインルーチン / Initialize the "v_info" array. [詳細]
|
|
static errr | init_s_info (void) |
| 職業技能情報読み込みのメインルーチン / Initialize the "s_info" array [詳細]
|
|
static errr | init_m_info (void) |
| 職業魔法情報読み込みのメインルーチン / Initialize the "m_info" array [詳細]
|
|
static errr | init_misc (void) |
| 基本情報読み込みのメインルーチン / Initialize misc. [詳細]
|
|
static errr | init_towns (void) |
| 町情報読み込みのメインルーチン / Initialize town array [詳細]
|
|
errr | init_buildings (void) |
| 店情報初期化のメインルーチン / Initialize buildings [詳細]
|
|
static errr | init_quests (void) |
| クエスト情報初期化のメインルーチン / Initialize quest array [詳細]
|
|
s16b | f_tag_to_index_in_init (cptr str) |
| 地形タグからIDを得る / Initialize quest array [詳細]
|
|
static errr | init_feat_variables (void) |
| 地形の汎用定義をタグを通じて取得する / Initialize feature variables [詳細]
|
|
static errr | init_other (void) |
| その他の初期情報更新 / Initialize some other arrays [詳細]
|
|
static errr | init_object_alloc (void) |
| オブジェクト配列を初期化する / Initialize some other arrays [詳細]
|
|
static errr | init_alloc (void) |
| モンスター配列と生成テーブルを初期化する / Initialize some other arrays [詳細]
|
|
static void | note (cptr str) |
| 画面左下にシステムメッセージを表示する / Hack – take notes on line 23 [詳細]
|
|
static void | init_angband_aux (cptr why) |
| 全ゲームデータ読み込みのサブルーチン / Hack – Explain a broken "lib" folder and quit (see below). [詳細]
|
|
void | init_angband (void) |
| 全ゲームデータ読み込みのメインルーチン / Hack – main Angband initialization entry point [詳細]
|
|
cptr | get_check_sum (void) |
| サムチェック情報を出力 / Get check sum in string form [詳細]
|
|
ゲームデータ初期化2 / Initialization (part 2) -BEN-
- 日付
- 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.
This file is used to initialize various variables and arrays for the
Angband game. Note the use of "fd_read()" and "fd_write()" to bypass
the common limitation of "read()" and "write()" to only 32767 bytes
at a time.
Several of the arrays for Angband are built from "template" files in
the "lib/file" directory, from which quick-load binary "image" files
are constructed whenever they are not present in the "lib/data"
directory, or if those files become obsolete, if we are allowed.
Warning – the "ascii" file parsers use a minor hack to collect the
name and text information in a single pass. Thus, the game will not
be able to load any template file with more than 20K of names or 60K
of text, even though technically, up to 64K should be legal.
The "init1.c" file is used only to parse the ascii template files,
to create the binary image files. If you include the binary image
files instead of the ascii template files, then you can undefine
"ALLOW_TEMPLATES", saving about 20K by removing "init1.c". Note
that the binary image files are extremely system dependant.
void init_file_paths |
( |
char * |
path | ) |
|
各データファイルを読み取るためのパスを取得する Find the default paths to all of our important sub-directories.
- 引数
-
- 戻り値
- なし
The purpose of each sub-directory is described in "variable.c".
All of the sub-directories should, by default, be located inside
the main "lib" directory, whose location is very system dependant.
This function takes a writable buffer, initially containing the
"path" to the "lib" directory, for example, "/pkg/lib/angband/",
or a system dependant string, for example, ":lib:". The buffer
must be large enough to contain at least 32 more characters.
Various command line options may allow some of the important
directories to be changed to user-specified directories, most
importantly, the "info" and "user" and "save" directories,
but this is done after this function, see "main.c".
In general, the initial path should end in the appropriate "PATH_SEP"
string. All of the "sub-directory" paths (created below or supplied
by the user) will NOT end in the "PATH_SEP" string, see the special
"path_build()" function in "util.c" for more information.
Mega-Hack – support fat raw files under NEXTSTEP, using special
"suffixed" directories for the "ANGBAND_DIR_DATA" directory, but
requiring the directories to be created by hand by the user.
Hack – first we free all the strings, since this is known
to succeed even if the strings have not been allocated yet,
as long as the variables start out as "NULL". This allows
this function to be called multiple times, for example, to
try several base "path" values until a good one is found.