Hengband  2.2.1
wild.h
[詳解]
1 #pragma once
2 #include "floor.h"
3 
4 
5 #define NO_TOWN 6
6 #define SECRET_TOWN 5
7 
8 /*
9  * Wilderness terrains
10  */
11 #define TERRAIN_EDGE 0 /* Edge of the World */
12 #define TERRAIN_TOWN 1 /* Town */
13 #define TERRAIN_DEEP_WATER 2 /* Deep water */
14 #define TERRAIN_SHALLOW_WATER 3 /* Shallow water */
15 #define TERRAIN_SWAMP 4 /* Swamp */
16 #define TERRAIN_DIRT 5 /* Dirt */
17 #define TERRAIN_GRASS 6 /* Grass */
18 #define TERRAIN_TREES 7 /* Trees */
19 #define TERRAIN_DESERT 8 /* Desert */
20 #define TERRAIN_SHALLOW_LAVA 9 /* Shallow lava */
21 #define TERRAIN_DEEP_LAVA 10 /* Deep lava */
22 #define TERRAIN_MOUNTAIN 11 /* Mountain */
23 
24 #define MAX_WILDERNESS 12 /* Maximum wilderness index */
25 
26 
27 /* wild.c */
28 extern void set_floor_and_wall(DUNGEON_IDX type);
29 extern void wilderness_gen(floor_type *floor_ptr);
30 extern void wilderness_gen_small(player_type *creature_ptr, floor_type *floor_ptr);
31 extern errr init_wilderness(void);
32 extern void init_wilderness_terrains(void);
33 extern void seed_wilderness(void);
34 extern errr parse_line_wilderness(char *buf, int ymin, int xmin, int ymax, int xmax, int *y, int *x);
35 extern bool change_wild_mode(player_type *creature_ptr, bool encount);
36 
37 /* Border */
38 typedef struct border_type border_type;
40 {
49 };
50 
51 /*
52  * A structure describing a wilderness area
53  * with a terrain or a town
54  */
55 typedef struct
56 {
57  int terrain;
59  int road;
62  byte entrance;
64 
66 
char * buf
Definition: chuukei.c:98
u32b seed
Definition: wild.h:60
s16b north_east
Definition: wild.h:46
void set_floor_and_wall(DUNGEON_IDX type)
ダンジョンの地形を指定確率に応じて各マスへランダムに敷き詰める / Fill the arrays of floors and walls in the good proportions
Definition: wild.c:71
Definition: floor.h:85
void wilderness_gen_small(player_type *creature_ptr, floor_type *floor_ptr)
広域マップの生成(簡易処理版) / Build the wilderness area.
Definition: wild.c:712
int road
Definition: wild.h:59
s16b south_east
Definition: wild.h:48
s16b south[MAX_WID]
Definition: wild.h:42
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"
Definition: wild.c:788
s16b north_west
Definition: wild.h:45
TOWN_IDX town
Definition: wild.h:58
s32b DEPTH
ゲーム中の階層レベルの型定義
Definition: h-type.h:216
Definition: wild.h:39
void init_wilderness_terrains(void)
荒野の地勢設定全体を初期化するメインルーチン / Initialize arrays for wilderness terrains
Definition: wild.c:1032
s16b north[MAX_WID]
Definition: wild.h:41
int errr
エラーコードの定義 / Error codes for function return values
Definition: h-type.h:57
#define MAX_WID
表示上のダンジョンの最大水平サイズ(SCREEN_WIDの3倍が望ましい) Maximum dungeon width in grids, must be a multiple of SCREEN_WI...
Definition: floor.h:52
void seed_wilderness(void)
ゲーム開始時に各荒野フロアの乱数シードを指定する / Generate the random seeds for the wilderness
Definition: wild.c:928
s16b TOWN_IDX
ゲーム中の町ID型を定義
Definition: h-type.h:114
#define MAX_HGT
表示上のダンジョンの最大垂直サイズ(SCREEN_HGTの3倍が望ましい) Maximum dungeon height in grids, must be a multiple of SCREEN_H...
Definition: floor.h:46
s16b east[MAX_HGT]
Definition: wild.h:43
s16b south_west
Definition: wild.h:47
s16b DUNGEON_IDX
ゲーム中のダンジョンID型を定義
Definition: h-type.h:130
DEPTH level
Definition: wild.h:61
s16b west[MAX_HGT]
Definition: wild.h:44
unsigned long u32b
Definition: h-type.h:108
wilderness_type ** wilderness
Definition: wild.c:39
byte entrance
Definition: wild.h:62
Definition: player-status.h:86
signed short s16b
Definition: h-type.h:98
bool change_wild_mode(player_type *creature_ptr, bool encount)
荒野から広域マップへの切り替え処理 / Initialize arrays for wilderness terrains
Definition: wild.c:1113
void wilderness_gen(floor_type *floor_ptr)
広域マップの生成 / Build the wilderness area outside of the town.
Definition: wild.c:472
errr init_wilderness(void)
ゲーム開始時の荒野初期化メインルーチン / Initialize wilderness array
Definition: wild.c:955
int terrain
Definition: wild.h:57
Definition: wild.h:55