OSDN Git Service

#37287 rooms.c内のC4457警告に対応。ソースコード整形。 / Deal C4457 warning in rooms.c. Source code...
[hengband/hengband.git] / src / generate.h
index bca2eb3..32bc28a 100644 (file)
@@ -1,17 +1,25 @@
-#define ALLOW_CAVERNS_AND_LAKES
+/*!
+ * @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 */
+#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
  */