… | |
… | |
189 | // simple inpainting |
189 | // simple inpainting |
190 | MTH void fill (char fill); |
190 | MTH void fill (char fill); |
191 | MTH void clear () { fill (0); } |
191 | MTH void clear () { fill (0); } |
192 | MTH void border (char fill = '#'); |
192 | MTH void border (char fill = '#'); |
193 | MTH void rect (int x1, int y1, int x2, int y2, char fill); // x2, y2 exclusive |
193 | MTH void rect (int x1, int y1, int x2, int y2, char fill); // x2, y2 exclusive |
|
|
194 | MTH void fill_rect (int x1, int y1, int x2, int y2, char fill); // x2, y2 exclusive |
194 | |
195 | |
195 | MTH void fill_rand (int perc); |
196 | MTH void fill_rand (int perc); |
196 | |
197 | |
197 | // makes sure all areas are connected. dirty=true carves rounder but also |
198 | // makes sure all areas are connected |
198 | // more walls, dirty=false carves narrow corridors. |
|
|
199 | MTH void isolation_remover (bool dirty = 0); |
199 | MTH void isolation_remover (); |
200 | |
200 | |
201 | // generates a cave, subtype 0 is a rough cave, randomly open or closed |
201 | // generates a cave, subtype 0 is a rough cave, randomly open or closed |
202 | MTH void gen_cave (int subtype); |
202 | MTH void gen_cave (int subtype); |
203 | |
203 | |
204 | // helper functions to modify the maze |
204 | // helper functions to modify the maze |