OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(2.2.0.5) #37287 xtra2.c内のC4457警告に対応 / Deal C4457 warning in xtra2.c
[hengband/hengband.git]
/
src
/
types.h
diff --git
a/src/types.h
b/src/types.h
index
060293e
..
34dc1a9
100644
(file)
--- a/
src/types.h
+++ b/
src/types.h
@@
-44,18
+44,16
@@
*/
*/
-/*
- * Feature state structure
- *
- * - Action (FF_*)
- * - Result (f_info ID)
+/*!
+ * @struct feature_state
+ * @brief 地形状態変化指定構造体 / Feature state structure
*/
typedef struct feature_state feature_state;
struct feature_state
{
*/
typedef struct feature_state feature_state;
struct feature_state
{
- byte action;
- s16b result;
+ byte action;
/*!< 変化条件をFF_*のIDで指定 / Action (FF_*) */
+ s16b result;
/*!< 変化先ID / Result (f_info ID) */
};
};
@@
-77,7
+75,7
@@
struct feature_type
u32b flags[FF_FLAG_SIZE]; /*!< 地形の基本特性ビット配列 / Flags */
u16b priority; /*!< 縮小表示で省略する際の表示優先度 / Map priority */
u32b flags[FF_FLAG_SIZE]; /*!< 地形の基本特性ビット配列 / Flags */
u16b priority; /*!< 縮小表示で省略する際の表示優先度 / Map priority */
- s16b destroyed; /*!<
一度*破壊*に巻き込まれたかどうかのフラグ
/ Default destroyed state */
+ s16b destroyed; /*!<
*破壊*に巻き込まれた時の地形移行先(未実装?)
/ Default destroyed state */
feature_state state[MAX_FEAT_STATES]; /*!< feature_state テーブル */
feature_state state[MAX_FEAT_STATES]; /*!< feature_state テーブル */
@@
-94,7
+92,7
@@
struct feature_type
/*!
* @struct object_kind
/*!
* @struct object_kind
- * @brief ベースアイテム
上右方
の構造体 / Information about object "kinds", including player knowledge.
+ * @brief ベースアイテム
情報
の構造体 / Information about object "kinds", including player knowledge.
* @details
* ゲーム進行用のセーブファイル上では aware と tried のみ保存対象とすること。と英文ではあるが実際はもっとある様子である。 /
* Only "aware" and "tried" are saved in the savefile
* @details
* ゲーム進行用のセーブファイル上では aware と tried のみ保存対象とすること。と英文ではあるが実際はもっとある様子である。 /
* Only "aware" and "tried" are saved in the savefile
@@
-154,51
+152,51
@@
struct object_kind
-/*
- * Information about "artifacts".
- *
- * Note that the save-file only writes "cur_num" to the savefile.
- *
- * Note that "max_num" is always "1" (if that artifact "exists")
- */
-
typedef struct artifact_type artifact_type;
typedef struct artifact_type artifact_type;
+/*!
+ * @struct artifact_type
+ * @brief 固定アーティファクト情報の構造体 / Artifact structure.
+ * @details
+ * @note
+ * the save-file only writes "cur_num" to the savefile.
+ * "max_num" is always "1" (if that artifact "exists")
+ */
struct artifact_type
{
struct artifact_type
{
- u32b name; /* Name (offset) */
- u32b text; /* Text (offset) */
+ u32b name; /*
!< アーティファクト名(headerオフセット参照) /
Name (offset) */
+ u32b text; /*
!< アーティファクト解説(headerオフセット参照) /
Text (offset) */
- byte tval; /* Artifact type */
- byte sval; /* Artifact sub type */
+ byte tval; /*
!< ベースアイテム大項目ID /
Artifact type */
+ byte sval; /*
!< ベースアイテム小項目ID /
Artifact sub type */
- s16b pval; /* Artifact extra info */
+ s16b pval; /*
!< pval修正値 /
Artifact extra info */
- s16b to_h; /* Bonus to hit */
- s16b to_d; /* Bonus to damage */
- s16b to_a; /* Bonus to armor */
+ s16b to_h; /*
!< 命中ボーナス値 /
Bonus to hit */
+ s16b to_d; /*
!< ダメージボーナス値 /
Bonus to damage */
+ s16b to_a; /*
!< ACボーナス値 /
Bonus to armor */
- s16b ac; /* Base armor */
+ s16b ac; /*
!< 上書きベースAC値 /
Base armor */
- byte dd, ds; /* Damage when hits */
+ byte dd, ds; /*
!< ダイス値 /
Damage when hits */
- s16b weight; /* Weight */
+ s16b weight; /*
!< 重量 /
Weight */
- s32b cost; /* Artifact "cost" */
+ s32b cost; /*
!< 基本価格 /
Artifact "cost" */
- u32b flags[TR_FLAG_SIZE]; /* Artifact Flags */
+ u32b flags[TR_FLAG_SIZE]; /*
! アイテムフラグ /
Artifact Flags */
- u32b gen_flags; /* flags for generate */
+ u32b gen_flags; /*
! アイテム生成フラグ /
flags for generate */
- byte level; /* Artifact level */
- byte rarity; /* Artifact rarity */
+ byte level; /*
! 基本生成階 /
Artifact level */
+ byte rarity; /*
! レアリティ /
Artifact rarity */
- byte cur_num; /* Number created (0 or 1) */
- byte max_num; /* Unused (should be "1") */
+ byte cur_num; /*
! 現在の生成数 /
Number created (0 or 1) */
+ byte max_num; /*
! (未使用)最大生成数 /
Unused (should be "1") */
- s16b floor_id;
/*
Leaved on this location last time */
+ s16b floor_id;
/*! アイテムを落としたフロアのID /
Leaved on this location last time */
- byte act_idx; /* Activative ability index */
+ byte act_idx; /*
! 発動能力ID /
Activative ability index */
};
};
@@
-291,26
+289,26
@@
typedef struct monster_race monster_race;
struct monster_race
{
struct monster_race
{
- u32b name; /*
Name (offset
) */
+ u32b name; /*
!< 名前データのオフセット(日本語) / Name offset(Japanese
) */
#ifdef JP
#ifdef JP
- u32b E_name;
/* 英語名 (offset
) */
+ u32b E_name;
/*!< 名前データのオフセット(英語) / Name offset(English
) */
#endif
#endif
- u32b text; /*
Text (offset)
*/
+ u32b text; /*
!< 思い出テキストのオフセット / Lore text offset
*/
- byte hdice; /* Creatures hit dice count */
- byte hside; /* Creatures hit dice sides */
+ byte hdice; /*
!< HPのダイス数 /
Creatures hit dice count */
+ byte hside; /*
!< HPのダイス面数 /
Creatures hit dice sides */
- s16b ac; /* Armour Class */
+ s16b ac; /*
!< アーマークラス /
Armour Class */
- s16b sleep; /* Inactive counter (base) */
- byte aaf; /* Area affect radius (1-100) */
- byte speed; /* Speed (normally 110) */
+ s16b sleep; /*
!< 睡眠値 /
Inactive counter (base) */
+ byte aaf; /*
!< 感知範囲(1-100スクエア) /
Area affect radius (1-100) */
+ byte speed; /*
!< 加速(110で+0) /
Speed (normally 110) */
- s32b mexp; /* Exp value for kill */
+ s32b mexp; /*
!< 殺害時基本経験値 /
Exp value for kill */
- s16b extra; /* Unused (for now) */
+ s16b extra; /*
!< 未使用 /
Unused (for now) */
- byte freq_spell; /* Spell frequency */
+ byte freq_spell; /*
!< 魔法&特殊能力仕様頻度(1/n) /
Spell frequency */
u32b flags1; /* Flags 1 (general) */
u32b flags2; /* Flags 2 (abilities) */
u32b flags1; /* Flags 1 (general) */
u32b flags2; /* Flags 2 (abilities) */
@@
-328,6
+326,12
@@
struct monster_race
u16b reinforce_dd[6];
u16b reinforce_ds[6];
u16b reinforce_dd[6];
u16b reinforce_ds[6];
+ u16b artifact_id[4]; /* 特定アーティファクトドロップID */
+ u16b artifact_rarity[4]; /* 特定アーティファクトレア度 */
+ u16b artifact_percent[4]; /* 特定アーティファクトドロップ率 */
+
+ u32b arena_ratio; /* アリーナの評価修正値(%基準 / 0=100%) / Arena */
+
s16b next_r_idx;
u32b next_exp;
s16b next_r_idx;
u32b next_exp;
@@
-347,7
+351,7
@@
struct monster_race
byte cur_num; /* Monster population on current level */
byte cur_num; /* Monster population on current level */
- s16b floor_id;
/* Location of unique monster */
+ s16b floor_id; /* Location of unique monster */
s16b r_sights; /* Count sightings of this monster */
s16b r_sights; /* Count sightings of this monster */
@@
-376,7
+380,7
@@
struct monster_race
u32b r_flags4; /* Observed racial flags */
u32b r_flags5; /* Observed racial flags */
u32b r_flags6; /* Observed racial flags */
u32b r_flags4; /* Observed racial flags */
u32b r_flags5; /* Observed racial flags */
u32b r_flags6; /* Observed racial flags */
- /* u32b r_flags7; */
/* Observed racial flags */
+ /* u32b r_flags7; */ /* Observed racial flags */
u32b r_flagsr; /* Observed racial resistance flags */
};
u32b r_flagsr; /* Observed racial resistance flags */
};
@@
-678,32
+682,34
@@
struct option_type
};
};
-/*
- * Structure for the "quests"
- */
typedef struct quest_type quest_type;
typedef struct quest_type quest_type;
+/*!
+ * @struct quest_type
+ * @brief クエスト情報の構造体 / Structure for the "quests".
+ */
+
struct quest_type
{
struct quest_type
{
- s16b status; /* Is the quest taken, completed, finished? */
+ s16b status; /*
!< クエストの進行ステータス /
Is the quest taken, completed, finished? */
- s16b type; /* The quest type */
+ s16b type; /*
!< クエストの種別 /
The quest type */
- char name[60]; /* Quest name */
- s16b level; /* Dungeon level */
- s16b r_idx; /* Monster race */
+ char name[60]; /*
!< クエスト名 /
Quest name */
+ s16b level; /*
!< 処理階層 /
Dungeon level */
+ s16b r_idx; /*
!< クエスト対象のモンスターID /
Monster race */
- s16b cur_num; /* Number killed */
- s16b max_num; /* Number required */
+ s16b cur_num; /*
!< 撃破したモンスターの数 /
Number killed */
+ s16b max_num; /*
!< 求められるモンスターの撃破数 /
Number required */
- s16b k_idx; /* object index */
- s16b num_mon; /* number of monsters on level */
+ s16b k_idx; /*
!< クエスト対象のアイテムID /
object index */
+ s16b num_mon; /*
!< QUEST_TYPE_KILL_NUMBER時の目標撃破数
number of monsters on level */
- byte flags; /* quest flags */
- byte dungeon; /* quest dungeon */
+ byte flags; /*
!< クエストに関するフラグビット /
quest flags */
+ byte dungeon; /*
!< クエスト対象のダンジョンID /
quest dungeon */
- byte complev; /* player level (complete) */
- u32b comptime; /* quest clear time*/
+ byte complev; /*
!< クリア時プレイヤーレベル /
player level (complete) */
+ u32b comptime; /*
!< クリア時ゲーム時間 /
quest clear time*/
};
};
@@
-1340,6
+1346,12
@@
struct player_type
byte tval_ammo; /* Correct ammo tval */
byte pspeed; /* Current speed */
byte tval_ammo; /* Correct ammo tval */
byte pspeed; /* Current speed */
+
+ s16b energy_use; /* Energy use this turn */
+
+ int y; /* Player location in dungeon */
+ int x; /* Player location in dungeon */
+ char name[32]; /* Current player's character name */
};
};
@@
-1675,14
+1687,15
@@
typedef struct
} cave_template_type;
} cave_template_type;
-/*
- * A structure type for arena entry
+/*!
+ * @struct arena_type
+ * @brief 闘技場のモンスターエントリー構造体 / A structure type for arena entry
*/
typedef struct
{
*/
typedef struct
{
- s16b r_idx; /* Monster (0 means victory prizing) */
- byte tval; /* tval of prize (0 means no prize) */
- byte sval; /* sval of prize */
+ s16b r_idx; /*
!< 闘技場のモンスター種族ID(0ならば表彰式) /
Monster (0 means victory prizing) */
+ byte tval; /*
!< モンスター打倒後に得られるアイテムの大カテゴリID /
tval of prize (0 means no prize) */
+ byte sval; /*
!< モンスター打倒後に得られるアイテムの小カテゴリID /
sval of prize */
} arena_type;
} arena_type;