ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/random_map.h
(Generate patch)

Comparing deliantra/server/random_maps/random_map.h (file contents):
Revision 1.41 by root, Sat Jul 3 03:09:27 2010 UTC vs.
Revision 1.44 by root, Sun Jul 4 00:58:18 2010 UTC

34 int xsize, ysize; 34 int xsize, ysize;
35 int expand2x; 35 int expand2x;
36 int layoutoptions1; 36 int layoutoptions1;
37 int layoutoptions2; 37 int layoutoptions2;
38 int layoutoptions3; 38 int layoutoptions3;
39 int symmetry;
40 int difficulty; 39 int difficulty;
41 int difficulty_given; 40 int difficulty_given;
42 float difficulty_increase; 41 float difficulty_increase;
43 42
44 int dungeon_level; 43 int dungeon_level;
45 int dungeon_depth; 44 int dungeon_depth;
46 45
47 int orientation;
48 uint32_t random_seed; 46 uint32_t random_seed;
49 uint64_t total_map_hp; 47 uint64_t total_map_hp;
50 int map_layout_style;
51 int symmetry_used;
52 48
53 HV *hv; 49 HV *hv;
54 50
55 shstr_tmp as_shstr () const; 51 shstr_tmp as_shstr () const;
56 52
70 void set (const char *option, int value) const { set (option, (IV)value); } 66 void set (const char *option, int value) const { set (option, (IV)value); }
71 67
72 // "private", adjusted sizes 68 // "private", adjusted sizes
73 int Xsize; 69 int Xsize;
74 int Ysize; 70 int Ysize;
71
72 int map_layout_style;
73 int symmetry_used;
75 74
76 random_map_params (); 75 random_map_params ();
77 random_map_params (random_map_params *RP); 76 random_map_params (random_map_params *RP);
78 random_map_params (HV *hv); 77 random_map_params (HV *hv);
79 ~random_map_params (); 78 ~random_map_params ();
86 LAYOUT_SPIRAL, 85 LAYOUT_SPIRAL,
87 LAYOUT_ROGUELIKE, 86 LAYOUT_ROGUELIKE,
88 LAYOUT_SNAKE, 87 LAYOUT_SNAKE,
89 LAYOUT_SQUARE_SPIRAL, 88 LAYOUT_SQUARE_SPIRAL,
90 LAYOUT_CAVE, 89 LAYOUT_CAVE,
90 LAYOUT_CASTLE,
91 LAYOUT_MULTIPLE, 91 LAYOUT_MULTIPLE,
92 NROFLAYOUTS, 92 NROFLAYOUTS,
93}; 93};
94 94
95/* 95/*
192 MTH void fill_rect (int x1, int y1, int x2, int y2, char fill); // x2, y2 exclusive 192 MTH void fill_rect (int x1, int y1, int x2, int y2, char fill); // x2, y2 exclusive
193 193
194 MTH void fill_rand (int perc); 194 MTH void fill_rand (int perc);
195 195
196 // makes sure all areas are connected 196 // makes sure all areas are connected
197 // perturb = 0 - very horz/vert tunnels
198 // perturb = 1 - straight but round
199 // perturb = 2 - snaky tunnels
197 MTH void isolation_remover (); 200 MTH void isolation_remover (int perturb = 2);
198 201
199 // generates a cave, subtype 0 is a rough cave, randomly open or closed 202 // generates a cave, subtype 0 is a rough cave, randomly open or closed
200 MTH void gen_cave (int subtype); 203 MTH void gen_cave (int subtype);
204 MTH void gen_castle (); // generates straightish structures
201 205
202 // helper functions to modify the maze 206 // helper functions to modify the maze
203 MTH void erode_1_2 (int c1, int c2 = -1, int repeat = 1); 207 MTH void erode_1_2 (int c1, int c2 = -1, int repeat = 1);
204 MTH void doorify (); 208 MTH void doorify ();
205 MTH void roomify (); // make some rooms in it, works best on onions 209 MTH void roomify (); // make some rooms in it, works best on onions
224} 228}
225 229
226// a simple point helper struct 230// a simple point helper struct
227struct point 231struct point
228{ 232{
229 short x; 233 int x;
230 short y; 234 int y;
231 235
232 point () 236 point ()
233 { 237 {
234 } 238 }
235 239

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines