Crossfire Server, Trunk  R20513
Functions
maze_gen.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char ** maze_gen (int xsize, int ysize, int option)
 This function generates a random blocked maze with the property that there is only one path from one spot to any other, and there is always a path from one spot to any other. More...
 

Function Documentation

char** maze_gen ( int  xsize,
int  ysize,
int  option 
)

This function generates a random blocked maze with the property that there is only one path from one spot to any other, and there is always a path from one spot to any other.

Parameters
xsize
ysizewanted map size.
optionif 0, maze will be sparse (sizeable rooms), else totally filled.
Returns
a char** array with # and . for closed and open respectively. a char value of 0 represents a blank space: a '#' is a wall.

Definition at line 58 of file maze_gen.c.

Referenced by layoutgen().

Here is the caller graph for this function: