OSDN Git Service

[modify]スクリーンダンプの最大サイズを増加
[hengband/hengband.git] / src / types.h
index a8646e2..550076d 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 テーブル */
 
@@ -94,7 +92,7 @@ struct feature_type
 
 /*!
  * @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
@@ -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;
 
+/*!
+ * @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
 {
-       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,43 +289,52 @@ 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) */
        u32b flags3;                    /* Flags 3 (race/resist) */
        u32b flags4;                    /* Flags 4 (inate/breath) */
-       u32b flags5;                    /* Flags 5 (normal spells) */
-       u32b flags6;                    /* Flags 6 (special spells) */
        u32b flags7;                    /* Flags 7 (movement related abilities) */
        u32b flags8;                    /* Flags 8 (wilderness info) */
        u32b flags9;                    /* Flags 9 (drops info) */
        u32b flagsr;                    /* Flags R (resistances info) */
 
+       u32b a_ability_flags1;  /* Activate Ability Flags 5 (normal spells) */
+       u32b a_ability_flags2;  /* Activate Ability Flags 6 (special spells) */
+       u32b a_ability_flags3;  /* Activate Ability Flags 7 (implementing) */
+       u32b a_ability_flags4;  /* Activate Ability Flags 8 (implementing) */
+
        monster_blow blow[4];   /* Up to four blows per round */
        u16b reinforce_id[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;
 
@@ -347,7 +354,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 */
@@ -376,7 +383,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 */
 };
 
@@ -678,32 +685,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*/
 };
 
 
@@ -716,7 +725,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) */
@@ -1100,7 +1109,7 @@ struct player_type
 
        s16b spell_exp[64];       /* Proficiency of spells */
        s16b weapon_exp[5][64];   /* Proficiency of weapons */
-       s16b skill_exp[10];       /* Proficiency of misc. skill */
+       s16b skill_exp[GINOU_MAX];       /* Proficiency of misc. skill */
 
        s32b magic_num1[108];     /* Array for non-spellbook type magic */
        byte magic_num2[108];     /* Flags for non-spellbook type magics */
@@ -1340,6 +1349,12 @@ struct player_type
        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 */
 };
 
 
@@ -1614,13 +1629,16 @@ struct dungeon_info_type {
        u32b mflags2;
        u32b mflags3;
        u32b mflags4;
-       u32b mflags5;
-       u32b mflags6;
        u32b mflags7;
        u32b mflags8;
        u32b mflags9;
        u32b mflagsr;
 
+       u32b m_a_ability_flags1;
+       u32b m_a_ability_flags2;
+       u32b m_a_ability_flags3;
+       u32b m_a_ability_flags4;
+
        char r_char[5];         /* Monster race allowed */
        int final_object;       /* The object you'll find at the bottom */
        int final_artifact;     /* The artifact you'll find at the bottom */