Hengband  2.1.4
 全て データ構造 ファイル 関数 変数 型定義 マクロ定義 ページ
関数
streams.c

ダンジョン生成に利用する関数群 / Used by dungeon generation. [詳細]

#include "angband.h"
#include "generate.h"
#include "streams.h"
#include "grid.h"
streams.cのインクルード依存関係図

関数

static void recursive_river (int x1, int y1, int x2, int y2, int feat1, int feat2, int width)
 再帰フラクタルアルゴリズムによりダンジョン内に川を配置する / Recursive fractal algorithm to place water through the dungeon. [詳細]
 
void add_river (int feat1, int feat2)
 ランダムに川/溶岩流をダンジョンに配置する / Places water /lava through dungeon. [詳細]
 
void build_streamer (int feat, int chance)
 ダンジョンの壁部にストリーマー(地質の変化)を与える / Places "streamers" of rock through dungeon [詳細]
 
void place_trees (int x, int y)
 ダンジョンの指定位置近辺に森林を配置する / Places "streamers" of rock through dungeon [詳細]
 
void destroy_level (void)
 ダンジョンに*破壊*済み地形ランダムに施す / Build a destroyed level [詳細]
 

説明

ダンジョン生成に利用する関数群 / Used by dungeon generation.

日付
2014/07/15
作者
Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
This software may be copied and distributed for educational, research,
and not for profit purposes provided that this copyright and statement
are included in all such copies.  Other copyrights may also apply.

Purpose: This file holds all the functions that are applied to a level after the rest has been generated, ie streams and level destruction.

関数

void add_river ( int  feat1,
int  feat2 
)

ランダムに川/溶岩流をダンジョンに配置する / Places water /lava through dungeon.

引数
feat1中央部地形ID
feat2境界部地形ID
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

void build_streamer ( int  feat,
int  chance 
)

ダンジョンの壁部にストリーマー(地質の変化)を与える / Places "streamers" of rock through dungeon

引数
featストリーマー地形ID
chance生成密度
戻り値
なし
Note that their are actually six different terrain features used
to represent streamers.  Three each of magma and quartz, one for
basic vein, one with hidden gold, and one with known gold.  The
hidden gold types are currently unused.

関数の呼び出しグラフ:

呼出しグラフ:

void destroy_level ( void  )

ダンジョンに*破壊*済み地形ランダムに施す / Build a destroyed level

戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

void place_trees ( int  x,
int  y 
)

ダンジョンの指定位置近辺に森林を配置する / Places "streamers" of rock through dungeon

引数
x指定X座標
y指定Y座標
戻り値
なし
Put trees near a hole in the dungeon roof  (rubble on ground + up stairway)
This happens in real world lava tubes.

関数の呼び出しグラフ:

呼出しグラフ:

static void recursive_river ( int  x1,
int  y1,
int  x2,
int  y2,
int  feat1,
int  feat2,
int  width 
)
static

再帰フラクタルアルゴリズムによりダンジョン内に川を配置する / Recursive fractal algorithm to place water through the dungeon.

引数
x1起点x座標
y1起点y座標
x2終点x座標
y2終点y座標
feat1中央部地形ID
feat2境界部地形ID
width基本幅
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ: