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.42 by root, Sat Jul 3 13:14:36 2010 UTC

86 LAYOUT_SPIRAL, 86 LAYOUT_SPIRAL,
87 LAYOUT_ROGUELIKE, 87 LAYOUT_ROGUELIKE,
88 LAYOUT_SNAKE, 88 LAYOUT_SNAKE,
89 LAYOUT_SQUARE_SPIRAL, 89 LAYOUT_SQUARE_SPIRAL,
90 LAYOUT_CAVE, 90 LAYOUT_CAVE,
91 LAYOUT_CASTLE,
91 LAYOUT_MULTIPLE, 92 LAYOUT_MULTIPLE,
92 NROFLAYOUTS, 93 NROFLAYOUTS,
93}; 94};
94 95
95/* 96/*
192 MTH void fill_rect (int x1, int y1, int x2, int y2, char fill); // x2, y2 exclusive 193 MTH void fill_rect (int x1, int y1, int x2, int y2, char fill); // x2, y2 exclusive
193 194
194 MTH void fill_rand (int perc); 195 MTH void fill_rand (int perc);
195 196
196 // makes sure all areas are connected 197 // makes sure all areas are connected
198 // perturb = 0 - very horz/vert tunnels
199 // perturb = 1 - straight but round
200 // perturb = 2 - snaky tunnels
197 MTH void isolation_remover (); 201 MTH void isolation_remover (int perturb = 2);
198 202
199 // generates a cave, subtype 0 is a rough cave, randomly open or closed 203 // generates a cave, subtype 0 is a rough cave, randomly open or closed
200 MTH void gen_cave (int subtype); 204 MTH void gen_cave (int subtype);
205 MTH void gen_castle (); // generates straightish structures
201 206
202 // helper functions to modify the maze 207 // helper functions to modify the maze
203 MTH void erode_1_2 (int c1, int c2 = -1, int repeat = 1); 208 MTH void erode_1_2 (int c1, int c2 = -1, int repeat = 1);
204 MTH void doorify (); 209 MTH void doorify ();
205 MTH void roomify (); // make some rooms in it, works best on onions 210 MTH void roomify (); // make some rooms in it, works best on onions

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines