Atrinik Server  4.0
Macros | Functions
room_gen_spiral.c File Reference
#include <global.h>

Go to the source code of this file.

Macros

#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

char ** map_gen_spiral (int xsize, int ysize, int option)
 
void connect_spirals (int xsize, int ysize, int sym, char **layout)
 

Detailed Description

The spiral room generator.

Definition in file room_gen_spiral.c.

Function Documentation

void connect_spirals ( int  xsize,
int  ysize,
int  sym,
char **  layout 
)

Connects disjoint spirals which may result from the symmetrization process.

Parameters
xsizeX size of the layout.
ysizeY size of the layout.
symOne of the SYM_xxx values.
layoutLayout to alter.

Definition at line 159 of file room_gen_spiral.c.

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

Generates a spiral layout.

Parameters
xsizeX size of the layout.
ysizeY size of the layout.
optionCombination of SPIRAL_xxx values.
Returns
The generated layout.

Definition at line 62 of file room_gen_spiral.c.