OSDN Git Service

Reworded for clarity some of the English messages which record why named pets were...
[hengband/hengband.git] / src / wild.h
1 #pragma once
2 #include "floor.h"
3
4 #define NO_TOWN 6
5 #define SECRET_TOWN 5
6
7 /*
8  * Wilderness terrains
9  */
10 #define TERRAIN_EDGE             0 /* Edge of the World */
11 #define TERRAIN_TOWN             1 /* Town */
12 #define TERRAIN_DEEP_WATER       2 /* Deep water */
13 #define TERRAIN_SHALLOW_WATER    3 /* Shallow water */
14 #define TERRAIN_SWAMP            4 /* Swamp */
15 #define TERRAIN_DIRT             5 /* Dirt */
16 #define TERRAIN_GRASS            6 /* Grass */
17 #define TERRAIN_TREES            7 /* Trees */
18 #define TERRAIN_DESERT           8 /* Desert */
19 #define TERRAIN_SHALLOW_LAVA     9 /* Shallow lava */
20 #define TERRAIN_DEEP_LAVA       10 /* Deep lava */
21 #define TERRAIN_MOUNTAIN        11 /* Mountain */
22
23 #define MAX_WILDERNESS          12 /* Maximum wilderness index */
24
25 /* wild.c */
26 extern void set_floor_and_wall(DUNGEON_IDX type);
27 extern void wilderness_gen(player_type *creature_ptr);
28 extern void wilderness_gen_small(player_type *creature_ptr);
29 extern errr init_wilderness(void);
30 extern void init_wilderness_terrains(void);
31 extern void seed_wilderness(void);
32 extern errr parse_line_wilderness(player_type *creature_ptr, char *buf, int xmin, int xmax, int *y, int *x);
33 extern bool change_wild_mode(player_type *creature_ptr, bool encount);
34
35 /* Border */
36 typedef struct border_type border_type;
37 struct border_type
38 {
39         s16b north[MAX_WID];
40         s16b south[MAX_WID];
41         s16b east[MAX_HGT];
42         s16b west[MAX_HGT];
43         s16b north_west;
44         s16b north_east;
45         s16b south_west;
46         s16b south_east;
47 };
48
49 /*
50  * A structure describing a wilderness area
51  * with a terrain or a town
52  */
53 typedef struct 
54 {
55         int terrain;
56         TOWN_IDX town;
57         int road;
58         u32b seed;
59         DEPTH level;
60         byte entrance;
61 } wilderness_type;
62
63 extern wilderness_type **wilderness;