Hengband  2.2.1
データ構造 | マクロ定義 | 型定義 | 関数 | 変数
wild.h ファイル
#include "floor.h"
wild.h の依存先関係図:
被依存関係図:

[ソースコード]

データ構造

struct  border_type
 
struct  wilderness_type
 

マクロ定義

#define NO_TOWN   6
 
#define SECRET_TOWN   5
 
#define TERRAIN_EDGE   0 /* Edge of the World */
 
#define TERRAIN_TOWN   1 /* Town */
 
#define TERRAIN_DEEP_WATER   2 /* Deep water */
 
#define TERRAIN_SHALLOW_WATER   3 /* Shallow water */
 
#define TERRAIN_SWAMP   4 /* Swamp */
 
#define TERRAIN_DIRT   5 /* Dirt */
 
#define TERRAIN_GRASS   6 /* Grass */
 
#define TERRAIN_TREES   7 /* Trees */
 
#define TERRAIN_DESERT   8 /* Desert */
 
#define TERRAIN_SHALLOW_LAVA   9 /* Shallow lava */
 
#define TERRAIN_DEEP_LAVA   10 /* Deep lava */
 
#define TERRAIN_MOUNTAIN   11 /* Mountain */
 
#define MAX_WILDERNESS   12 /* Maximum wilderness index */
 

型定義

typedef struct border_type border_type
 

関数

void set_floor_and_wall (DUNGEON_IDX type)
 ダンジョンの地形を指定確率に応じて各マスへランダムに敷き詰める / Fill the arrays of floors and walls in the good proportions [詳解]
 
void wilderness_gen (floor_type *floor_ptr)
 広域マップの生成 / Build the wilderness area outside of the town. [詳解]
 
void wilderness_gen_small (player_type *creature_ptr, floor_type *floor_ptr)
 広域マップの生成(簡易処理版) / Build the wilderness area. [詳解]
 
errr init_wilderness (void)
 ゲーム開始時の荒野初期化メインルーチン / Initialize wilderness array [詳解]
 
void init_wilderness_terrains (void)
 荒野の地勢設定全体を初期化するメインルーチン / Initialize arrays for wilderness terrains [詳解]
 
void seed_wilderness (void)
 ゲーム開始時に各荒野フロアの乱数シードを指定する / Generate the random seeds for the wilderness [詳解]
 
errr parse_line_wilderness (char *buf, int ymin, int xmin, int ymax, int xmax, int *y, int *x)
 w_info.txtのデータ解析 / Parse a sub-file of the "extra info" [詳解]
 
bool change_wild_mode (player_type *creature_ptr, bool encount)
 荒野から広域マップへの切り替え処理 / Initialize arrays for wilderness terrains [詳解]
 

変数

wilderness_type ** wilderness
 

マクロ定義詳解

◆ MAX_WILDERNESS

#define MAX_WILDERNESS   12 /* Maximum wilderness index */

◆ NO_TOWN

#define NO_TOWN   6

◆ SECRET_TOWN

#define SECRET_TOWN   5

◆ TERRAIN_DEEP_LAVA

#define TERRAIN_DEEP_LAVA   10 /* Deep lava */

◆ TERRAIN_DEEP_WATER

#define TERRAIN_DEEP_WATER   2 /* Deep water */

◆ TERRAIN_DESERT

#define TERRAIN_DESERT   8 /* Desert */

◆ TERRAIN_DIRT

#define TERRAIN_DIRT   5 /* Dirt */

◆ TERRAIN_EDGE

#define TERRAIN_EDGE   0 /* Edge of the World */

◆ TERRAIN_GRASS

#define TERRAIN_GRASS   6 /* Grass */

◆ TERRAIN_MOUNTAIN

#define TERRAIN_MOUNTAIN   11 /* Mountain */

◆ TERRAIN_SHALLOW_LAVA

#define TERRAIN_SHALLOW_LAVA   9 /* Shallow lava */

◆ TERRAIN_SHALLOW_WATER

#define TERRAIN_SHALLOW_WATER   3 /* Shallow water */

◆ TERRAIN_SWAMP

#define TERRAIN_SWAMP   4 /* Swamp */

◆ TERRAIN_TOWN

#define TERRAIN_TOWN   1 /* Town */

◆ TERRAIN_TREES

#define TERRAIN_TREES   7 /* Trees */

型定義詳解

◆ border_type

typedef struct border_type border_type

関数詳解

◆ change_wild_mode()

bool change_wild_mode ( player_type creature_ptr,
bool  encount 
)

荒野から広域マップへの切り替え処理 / Initialize arrays for wilderness terrains

引数
encount襲撃時TRUE
戻り値
切り替えが行われた場合はTRUEを返す。
呼び出し関係図:

◆ init_wilderness()

errr init_wilderness ( void  )

ゲーム開始時の荒野初期化メインルーチン / Initialize wilderness array

戻り値
エラーコード

◆ init_wilderness_terrains()

void init_wilderness_terrains ( void  )

荒野の地勢設定全体を初期化するメインルーチン / Initialize arrays for wilderness terrains

戻り値
なし
呼び出し関係図:

◆ parse_line_wilderness()

errr parse_line_wilderness ( char *  buf,
int  ymin,
int  xmin,
int  ymax,
int  xmax,
int *  y,
int *  x 
)

w_info.txtのデータ解析 / Parse a sub-file of the "extra info"

引数
buf読み取ったデータ行のバッファ
ymin未使用
xmin広域地形マップを読み込みたいx座標の開始位置
ymax未使用
xmax広域地形マップを読み込みたいx座標の終了位置
y広域マップの高さを返す参照ポインタ
x広域マップの幅を返す参照ポインタ
戻り値
なし
呼び出し関係図:

◆ seed_wilderness()

void seed_wilderness ( void  )

ゲーム開始時に各荒野フロアの乱数シードを指定する / Generate the random seeds for the wilderness

戻り値
なし

◆ set_floor_and_wall()

void set_floor_and_wall ( DUNGEON_IDX  type)

ダンジョンの地形を指定確率に応じて各マスへランダムに敷き詰める / Fill the arrays of floors and walls in the good proportions

引数
typeダンジョンID
戻り値
なし
呼び出し関係図:

◆ wilderness_gen()

void wilderness_gen ( floor_type floor_ptr)

広域マップの生成 / Build the wilderness area outside of the town.

戻り値
なし
呼び出し関係図:

◆ wilderness_gen_small()

void wilderness_gen_small ( player_type creature_ptr,
floor_type floor_ptr 
)

広域マップの生成(簡易処理版) / Build the wilderness area.

-DG-

戻り値
なし
呼び出し関係図:

変数詳解

◆ wilderness

wilderness_type** wilderness