OSDN Git Service

#37287 rooms.c内のC4457警告に対応。ソースコード整形。 / Deal C4457 warning in rooms.c. Source code...
[hengband/hengband.git] / src / generate.h
index 9ff683f..32bc28a 100644 (file)
@@ -1,21 +1,25 @@
+/*!
+ * @file generate.h
+ * @brief ダンジョン生成処理のヘッダーファイル
+ * @date 2014/08/08
+ * @author
+ * 不明(変愚蛮怒スタッフ?)
+ */
+
 #define ALLOW_CAVERNS_AND_LAKES
 
-#define SAFE_MAX_ATTEMPTS 5000
+#define SAFE_MAX_ATTEMPTS 5000 /*!< 生成処理基本試行回数 */
 
 /*
  * Dungeon generation values
  */
-#define DUN_UNUSUAL 250 /* Level/chance of unusual room (was 200) */
-#define DUN_DEST    18  /* 1/chance of having a destroyed level */
-#define SMALL_LEVEL 3   /* 1/chance of smaller size (3) */
-#define EMPTY_LEVEL 24  /* 1/chance of being 'empty' (15) */
-#define LAKE_LEVEL  24  /* 1/chance of being a lake on the level */
-#define DARK_EMPTY  5   /* 1/chance of arena level NOT being lit (2) */
-#define DUN_CAVERN  20 /* 1/chance of having a cavern level */
-
-/* Number of rooms to attempt (was 50) */
-#define DUN_ROOMS_MIN  10
-#define DUN_ROOMS_MAX  100
+#define DUN_UNUSUAL 250 /*!< 通常ではない部屋が生成される基本確率(レベル/定数) / Level/chance of unusual room (was 200) */
+#define DUN_DEST    18  /*!< 破壊地形がフロアに発生する基本確率(1/定数) / 1/chance of having a destroyed level */
+#define SMALL_LEVEL 3   /*!< 小さいフロアの生成される基本確率(1/定数) / 1/chance of smaller size (3) */
+#define EMPTY_LEVEL 24  /*!< アリーナレベル(外壁のないフロア)の生成される基本確率(1/定数) / 1/chance of being 'empty' (15) */
+#define LAKE_LEVEL  24  /*!< 川や湖のあるフロアの生成される確率(1/定数) / 1/chance of being a lake on the level */
+#define DARK_EMPTY  5   /*!< フロア全体が暗い可能性の基本確率(1/定数) / 1/chance of arena level NOT being lit (2) */
+#define DUN_CAVERN  20 /*!< 洞窟状のダンジョンが生成される基本確率(1/定数) / 1/chance of having a cavern level */
 
 /*
  * Dungeon tunnel generation values
 #define DUN_TUN_JCT_MIN 60 /* Chance of doors at tunnel junctions (was 90) */
 #define DUN_TUN_JCT_MAX 90
 
-extern int dun_rooms;
-
-extern int dun_tun_rnd;
-extern int dun_tun_chg;
-extern int dun_tun_con;
-extern int dun_tun_pen;
-extern int dun_tun_jct;
 
+extern int dun_tun_rnd; /*!< ダンジョンの通路方向を掻き回す頻度(一回の試行ごとに%で判定している) */
+extern int dun_tun_chg; /*!< ダンジョンの通路をクランクさせる頻度(一回の試行ごとに%で判定している) */
+extern int dun_tun_con; /*!< ダンジョンの通路を継続して引き延ばす頻度(一回の試行ごとに%で判定している) */
+extern int dun_tun_pen; /*!< ダンジョンの部屋入口にドアを設置する頻度(一回の試行ごとに%で判定している) */
+extern int dun_tun_jct; /*!< ダンジョンの通路交差地点付近にドアを設置する頻度(一回の試行ごとに%で判定している) */
 /*
  * Dungeon streamer generation values
  */
 #define DUN_STR_DEN     5      /* Density of streamers */
-#define DUN_STR_RNG     2      /* Width of streamers */
-#define DUN_STR_MAG     3      /* Number of magma streamers */
-#define DUN_STR_MC     90      /* 1/chance of treasure per magma */
-#define DUN_STR_QUA        2   /* Number of quartz streamers */
-#define DUN_STR_QC     40      /* 1/chance of treasure per quartz */
+#define DUN_STR_RNG     5      /* Width of streamers */
+#define DUN_STR_MAG     6      /* Number of magma streamers */
+#define DUN_STR_MC     30      /* 1/chance of treasure per magma */
+#define DUN_STR_QUA    4       /* Number of quartz streamers */
+#define DUN_STR_QC     15      /* 1/chance of treasure per quartz */
 #define DUN_STR_WLW     1      /* Width of lava & water streamers -KMW- */
 #define DUN_STR_DWLW    8      /* Density of water & lava streams -KMW- */
 
@@ -139,8 +141,11 @@ struct dun_data
        /* Array of which blocks are used */
        bool room_map[MAX_ROOMS_ROW][MAX_ROOMS_COL];
 
-       /* Hack -- there is a pit/nest on this level */
-       int crowded;
+       /* Various type of dungeon floors */
+       bool destroyed;
+       bool empty_level;
+       bool cavern;
+       int laketype;
 };
 
 extern dun_data *dun;