OSDN Git Service

(2.2.0.19) 店主の最大売却取引額を符号付き32ビットにして30000を超える額を指定できるようにした。 / Change type of "max_cost...
[hengband/hengband.git] / src / types.h
index 963db79..1dcc31d 100644 (file)
  */
 
 
-/*
- * 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
 {
-       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 */
-       s16b destroyed;           /*!< 一度*破壊*に巻き込まれたかどうかのフラグ / Default destroyed state */
+       s16b destroyed;           /*!< *破壊*に巻き込まれた時の地形移行先(未実装?) / Default destroyed state */
 
        feature_state state[MAX_FEAT_STATES]; /*!< feature_state テーブル */
 
@@ -291,26 +289,26 @@ typedef struct monster_race monster_race;
 
 struct monster_race
 {
-       u32b name;                              /* Name (offset) */
+       u32b name;                              /*!< 名前データのオフセット(日本語) /  Name offset(Japanese) */
 #ifdef JP
-       u32b E_name;                    /* 英語名 (offset) */
+       u32b E_name;            /*!< 名前データのオフセット(英語) /  Name offset(English) */
 #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) */
@@ -332,7 +330,7 @@ struct monster_race
        u16b artifact_rarity[4];        /* 特定アーティファクトレア度 */
        u16b artifact_percent[4]; /* 特定アーティファクトドロップ率 */
 
-       u32b arena_ratio; /* アリーナの評価修正値(%基準 / 0=100%)*/
+       u32b arena_ratio;               /* アリーナの評価修正値(%基準 / 0=100%) / Arena */
 
        s16b next_r_idx;
        u32b next_exp;
@@ -353,7 +351,7 @@ struct monster_race
 
        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 */
@@ -382,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_flags7; */                    /* Observed racial flags */
+       /* u32b r_flags7; */    /* Observed racial flags */
        u32b r_flagsr;                  /* Observed racial resistance flags */
 };
 
@@ -684,32 +682,34 @@ struct option_type
 };
 
 
-/*
- * Structure for the "quests"
- */
 typedef struct quest_type quest_type;
 
+/*!
+ * @struct quest_type
+ * @brief クエスト情報の構造体 / Structure for the "quests".
+ */
+
 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*/
 };
 
 
@@ -722,7 +722,7 @@ struct owner_type
 {
        cptr owner_name;        /* Name */
 
-       s16b max_cost;          /* Purse limit */
+       s32b max_cost;          /* Purse limit */
 
        byte max_inflate;       /* Inflation (max) */
        byte min_inflate;       /* Inflation (min) */