|
Atrinik Server 2.5
|
Go to the source code of this file.
Defines | |
| #define | RANDOM_OPTIONS 0 |
| #define | REGULAR_SPIRAL 1 |
| #define | FINE_SPIRAL 2 |
| #define | FIT_SPIRAL 4 |
| #define | MAX_SPIRAL_OPT 8 |
| #define | MINDIST 3 |
| #define | MAX_FINE .454545 |
Functions | |
| int | surround_check (char **maze, int i, int j, int xsize, int ysize) |
| char ** | map_gen_spiral (int xsize, int ysize, int option) |
| void | connect_spirals (int xsize, int ysize, int sym, char **layout) |
The spiral room generator.
Definition in file room_gen_spiral.c.
| void connect_spirals | ( | int | xsize, |
| int | ysize, | ||
| int | sym, | ||
| char ** | layout | ||
| ) |
Connects disjoint spirals which may result from the symmetrization process.
| xsize | X size of the layout. |
| ysize | Y size of the layout. |
| sym | One of the SYM_xxx values. |
| layout | Layout to alter. |
Definition at line 176 of file room_gen_spiral.c.
| char** map_gen_spiral | ( | int | xsize, |
| int | ysize, | ||
| int | option | ||
| ) |
Generates a spiral layout.
| xsize | X size of the layout. |
| ysize | Y size of the layout. |
| option | Combination of SPIRAL_xxx values. |
Definition at line 69 of file room_gen_spiral.c.
| int surround_check | ( | char ** | layout, |
| int | i, | ||
| int | j, | ||
| int | Xsize, | ||
| int | Ysize | ||
| ) |
Checks free spots around a spot.
| layout | Map layout. |
| i | X coordinate to check. |
| j | Y coordinate to check. |
| Xsize | X size of the layout. |
| Ysize | Y size of the layout. |
Definition at line 66 of file rogue_layout.c.
1.7.4