else
{
/*
- * File could not be opened for reading. Assume angband_header not
+ * File could not be opened for reading. Assume header not
* present.
*/
player_ptr->autopick_autoregister = FALSE;
* point.
* These three functions automatically delete old dumped lines
* before adding new ones. Since there are various kinds of automatic
- * dumps in a single file, we add a angband_header and a footer with a type
+ * dumps in a single file, we add a header and a footer with a type
* name for every automatic dump, and kill old lines only when the
- * lines have the correct type of angband_header and footer.
+ * lines have the correct type of header and footer.
* We need to be quite paranoid about correctness; the user might
* (mistakenly) edit the file by hand, and see all their work come
* to nothing on the next auto dump otherwise. The current code only
y = 1;
- /* Print angband_header(s) */
+ /* Print header(s) */
#ifdef JP
prt(format(" %s 失率 %s 失率", (tval == TV_ROD ? " 状態 " : "使用回数"), (tval == TV_ROD ? " 状態 " : "使用回数")), y++, x);
#else
for (y = 1; y < 24; y++)
prt("", y, x);
- /* Print angband_header(s) */
+ /* Print header(s) */
#ifdef JP
prt(format(" %-43s %6s/%s", "能力(必要エッセンス)", "必要数", "所持数"), 1, x);
* @brief ダンジョンの生成処理の基幹部分ヘッダーファイル
* @date 2014/08/15
* @details
- * Purpose: angband_header file for grid.c, used only in dungeon generation
+ * Purpose: header file for grid.c, used only in dungeon generation
* files (generate.c, rooms.c)
* @author
* Copyright (c) 1989 James E. Wilson, Robert A. Koeneke
* auto_dump_printf(fmt, ...)
* Dump a formatted string using fprintf().
* open_auto_dump(buf, mark)
- * Open a file, remove old dump, and add new angband_header.
+ * Open a file, remove old dump, and add new header.
* close_auto_dump(void)
* Add a footer, and close the file.
*/
current_world_ptr->sf_saves++;
/*** Actually write the file ***/
- /* Dump the file angband_header */
+ /* Dump the file header */
xor_byte = 0;
wr_byte(FAKE_VER_MAJOR);
xor_byte = 0;
* make sure to obtain various extra files as described below.
*
* The official compilation uses the CodeWarrior Pro compiler, which
-* includes a special project file and precompilable angband_header file.
+* includes a special project file and precompilable header file.
* </p>
*
* <p>
#else
"parse error",
"obsolete file",
- "missing record angband_header",
+ "missing record header",
"non-sequential records",
"invalid flag specification",
"undefined directive",
};
-
/*
* File headers
*/
{
angband_header test;
- /* Read and Verify the angband_header */
+ /* Read and Verify the header */
if (fd_read(fd, (char*)(&test), sizeof(angband_header)) ||
(test.v_major != head->v_major) ||
(test.v_minor != head->v_minor) ||
return -1;
}
- /* Accept the angband_header */
+ /* Accept the header */
(*head) = test;
/* Allocate the "*_info" array */
/*!
* @brief ヘッダ構造体の更新
- * Initialize the angband_header of an *_info.raw file.
+ * Initialize the header of an *_info.raw file.
* @param head rawファイルのヘッダ
* @param num データ数
* @param len データの長さ
*/
static errr init_f_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&f_head, max_f_idx, sizeof(feature_type));
/* Save a pointer to the parsing function */
*/
static errr init_k_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&k_head, max_k_idx, sizeof(object_kind));
/* Save a pointer to the parsing function */
*/
static errr init_a_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&a_head, max_a_idx, sizeof(artifact_type));
/* Save a pointer to the parsing function */
*/
static errr init_e_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&e_head, max_e_idx, sizeof(ego_item_type));
/* Save a pointer to the parsing function */
*/
static errr init_r_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&r_head, max_r_idx, sizeof(monster_race));
/* Save a pointer to the parsing function */
*/
static errr init_d_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&d_head, current_world_ptr->max_d_idx, sizeof(dungeon_type));
/* Save a pointer to the parsing function */
*/
errr init_v_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&v_head, max_v_idx, sizeof(vault_type));
/* Save a pointer to the parsing function */
*/
static errr init_s_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&s_head, MAX_CLASS, sizeof(skill_table));
/* Save a pointer to the parsing function */
*/
static errr init_m_info(void)
{
- /* Init the angband_header */
+ /* Init the header */
init_header(&m_head, MAX_CLASS, sizeof(player_magic));
/* Save a pointer to the parsing function */
redraw = TRUE;
if (!use_menu) screen_save();
- /* Print angband_header(s) */
+ /* Print header(s) */
if (num < 18)
prt(_(" Lv MP 失率", " Lv Cost Fail"), y++, x);
else
*/
struct artifact_type
{
- STR_OFFSET name; /*!< アーティファクト名(angband_headerオフセット参照) / Name (offset) */
- STR_OFFSET text; /*!< アーティファクト解説(angband_headerオフセット参照) / Text (offset) */
+ STR_OFFSET name; /*!< アーティファクト名(headerオフセット参照) / Name (offset) */
+ STR_OFFSET text; /*!< アーティファクト解説(headerオフセット参照) / Text (offset) */
tval_type tval; /*!< ベースアイテム大項目ID / Artifact type */
OBJECT_SUBTYPE_VALUE sval; /*!< ベースアイテム小項目ID / Artifact sub type */
/*!
* @file angband.h
* @brief Angband(変愚蛮怒)メインヘッダファイル
- * Main "Angband" angband_header file
+ * Main "Angband" header file
* @date 2014/08/08
* @author
* Copyright (c) 1989 James E. Wilson
/*
- * Then, include the angband_header files for the low-level code
+ * Then, include the header files for the low-level code
*/
#include "term/z-util.h"
#include "term/z-virt.h"
/*
- * Include the "Angband" configuration angband_header
+ * Include the "Angband" configuration header
*/
#include "system/gamevalue.h"
#include "cmd-io/cmd-gameoption.h"
/*!
* @file h-basic.h
* @brief 変愚時追加された基本事項のヘッダーファイル /
- * The most basic "include" file. This file simply includes other low level angband_header files.
+ * The most basic "include" file. This file simply includes other low level header files.
* @date 2014/08/15
* @author
* 不明(変愚蛮怒スタッフ?)
/*!
* @file h-config.h
* @brief 主に変愚/Zang時追加された基本事項のヘッダーファイル /
- * The most basic "include" file. This file simply includes other low level angband_header files.
+ * The most basic "include" file. This file simply includes other low level header files.
* @date 2014/08/15
* @author
* 不明(変愚蛮怒スタッフ?)
/*!
* @file h-system.h
* @brief 変愚蛮怒用システムヘッダーファイル /
- * The most basic "include" file. This file simply includes other low level angband_header files.
+ * The most basic "include" file. This file simply includes other low level header files.
* @date 2014/08/16
* @author
* 不明(変愚蛮怒スタッフ?)
}
else
{
- /* get to the start of the angband_header and read INFOHEADER */
+ /* get to the start of the header and read INFOHEADER */
_llseek(fh, sizeof(BITMAPFILEHEADER), SEEK_SET);
if (sizeof(BITMAPINFOHEADER) != _lread(fh, (LPSTR)lpbi, sizeof(BITMAPINFOHEADER)))
{
lpbi->biSizeImage /= 2;
}
- /* get a proper-sized buffer for angband_header, color table and bits */
+ /* get a proper-sized buffer for header, color table and bits */
GlobalUnlock(pInfo->hDIB);
pInfo->hDIB = GlobalReAlloc(pInfo->hDIB, lpbi->biSize +
nNumColors * sizeof(RGBQUAD) +
}
}
- /* offset to the bits from start of DIB angband_header */
+ /* offset to the bits from start of DIB header */
offBits = (WORD)lpbi->biSize + nNumColors * sizeof(RGBQUAD);
if (bf.bfOffBits != 0L)
* @brief プレイヤーの特性フラグ一種を表示する
* @param row コンソール表示位置の左上行
* @param col コンソール表示位置の左上列
- * @param angband_header コンソール上で表示する特性名
+ * @param header コンソール上で表示する特性名
* @param header_color 耐性等のパラメータ名 の色
* @param header_col 「耐性等のパラメータ名 の色」の元々の位置
* @param flag1 参照する特性ID
* @param f プレイヤーの特性情報構造体
* @return なし
*/
-static void display_one_characteristic(TERM_LEN row, TERM_LEN col, concptr angband_header, byte header_color, int header_col, int flag1, bool vuln, all_player_flags *f)
+static void display_one_characteristic(TERM_LEN row, TERM_LEN col, concptr header, byte header_color, int header_col, int flag1, bool vuln, all_player_flags *f)
{
c_put_str((byte)(vuln ? TERM_RED : TERM_SLATE), ".", row, col);
if (have_flag(f->player_flags, flag1))
if (vuln)
c_put_str(TERM_RED, "v", row, col + 1);
- c_put_str(header_color, angband_header, row, header_col);
+ c_put_str(header_color, header, row, header_col);
}
* @param creature_ptr プレーヤーへの参照ポインタ
* @param row コンソール表示位置の左上行
* @param col コンソール表示位置の左上列
- * @param angband_header コンソール上で表示する特性名
+ * @param header コンソール上で表示する特性名
* @param flag1 参照する特性ID
* @param f プレイヤーの特性情報構造体
* @param mode 表示オプション
* @return なし
*/
-static void process_one_characteristic(player_type *creature_ptr, TERM_LEN row, TERM_LEN col, concptr angband_header, int flag1, all_player_flags *f, u16b mode)
+static void process_one_characteristic(player_type *creature_ptr, TERM_LEN row, TERM_LEN col, concptr header, int flag1, all_player_flags *f, u16b mode)
{
byte header_color = TERM_L_DARK;
int header_col = col;
!(have_flag(f->known_obj_imm, flag1) || have_flag(f->player_imm, flag1) || have_flag(f->tim_player_imm, flag1)))
vuln = TRUE;
- col += strlen(angband_header) + 1;
+ col += strlen(header) + 1;
decide_colors(creature_ptr, mode, row, &col, flag1, &header_color, vuln);
if (mode & DP_IMM)
{
if (header_color != TERM_L_DARK)
{
- c_put_str(header_color, angband_header, row, header_col);
+ c_put_str(header_color, header, row, header_col);
}
return;
}
- display_one_characteristic(row, col, angband_header, header_color, header_col, flag1, vuln, f);
+ display_one_characteristic(row, col, header, header_color, header_col, flag1, vuln, f);
}
int col;
int row;
int len;
- char angband_header[20];
+ char header[20];
} disp_player_line[]
#ifdef JP
= {
*/
void display_player_one_line(int entry, concptr val, TERM_COLOR attr)
{
- concptr head = disp_player_line[entry].angband_header;
+ concptr head = disp_player_line[entry].header;
int head_len = strlen(head);
int row = disp_player_line[entry].row;
int col = disp_player_line[entry].col;
/*
* This is somewhat ugly.
*
- * Given a angband_header ("Resist", e.g.), a list ("Fire", "Cold", Acid", e.g.),
+ * Given a header ("Resist", e.g.), a list ("Fire", "Cold", Acid", e.g.),
* and a separator character (',', e.g.), write the list to the spoiler file
* in a "nice" format, such as:
*
/*!
* @brief フラグ名称を出力する汎用関数
- * @param angband_header ヘッダに出力するフラグ群の名前
+ * @param header ヘッダに出力するフラグ群の名前
* @param list フラグ名リスト
* @param separator フラグ表示の区切り記号
* @return なし
*/
-static void spoiler_outlist(concptr angband_header, concptr *list, char separator)
+static void spoiler_outlist(concptr header, concptr *list, char separator)
{
int line_len, buf_len;
char line[MAX_LINE_LEN + 1], buf[80];
/* This function always indents */
strcpy(line, INDENT1);
- /* Create angband_header (if one was given) */
- if (angband_header && (angband_header[0]))
+ /* Create header (if one was given) */
+ if (header && (header[0]))
{
- strcat(line, angband_header);
+ strcat(line, header);
strcat(line, " ");
}
return;
}
- /* Dump the angband_header */
+ /* Dump the header */
print_header();
/* List the artifacts by tval */
/* Allocate the "who" array */
C_MAKE(who, max_r_idx, MONRACE_IDX);
- /* Dump the angband_header */
+ /* Dump the header */
fprintf(fff, "Monster Spoilers for Hengband Version %d.%d.%d\n",
FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
fprintf(fff, "------------------------------------------\n\n");
- /* Dump the angband_header */
+ /* Dump the header */
fprintf(fff, " %-38.38s%4s%4s%4s%7s%5s %11.11s\n",
"Name", "Lev", "Rar", "Spd", "Hp", "Ac", "Visual Info");
fprintf(fff, "%-42.42s%4s%4s%4s%7s%5s %11.11s\n",
}
- /* Dump the angband_header */
+ /* Dump the header */
sprintf(buf, "Monster Spoilers for Hengband Version %d.%d.%d\n",
FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
return;
}
- /* Dump the angband_header */
+ /* Dump the header */
sprintf(buf, "Monster Spoilers for Hengband Version %d.%d.%d\n",
FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
return;
}
- /* Dump the angband_header */
+ /* Dump the header */
sprintf(buf, "Random artifacts list.\r");
spoiler_underline(buf);