|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| void | find_top_left_corner (char **maze, int *cx, int *cy) |
| char ** | make_square_spiral_layout (int xsize, int ysize) |
Square-spiral layout generator.
Definition in file square_spiral.c.
| void find_top_left_corner | ( | char ** | maze, |
| int * | cx, | ||
| int * | cy | ||
| ) |
This starts from within a centered onion layer (or between two layers), and looks up until it finds a wall, and then looks right until it finds a vertical wall, i.e., the corner. It sets cx and cy to that. It also starts from cx and cy.
| maze | Where to look. |
Definition at line 38 of file square_spiral.c.
| char** make_square_spiral_layout | ( | int | xsize, |
| int | ysize | ||
| ) |
Generates a square-spiral layout.
| xsize | X size of the layout. |
| ysize | Y size of the layout. |
Definition at line 62 of file square_spiral.c.
1.7.4