Crossfire Server, Trunk  R20993
Random map layout options.

Macros

#define OPT_BOTTOM_C   4
 
#define OPT_BOTTOM_R   8
 
#define OPT_CENTERED   1
 
#define OPT_IRR_SPACE   16
 
#define OPT_LINEAR   2
 
#define OPT_NO_DOORS   256
 
#define OPT_RANDOM   0
 
#define OPT_WALL_OFF   32
 
#define OPT_WALLS_ONLY   64
 

Detailed Description

Move these defines out of room_gen_onion.c to here, as other files (like square_spiral) also uses them.

Macro Definition Documentation

◆ OPT_BOTTOM_C

#define OPT_BOTTOM_C   4

Bottom-centered.

Definition at line 124 of file random_map.h.

Referenced by make_doors(), and map_gen_onion().

◆ OPT_BOTTOM_R

#define OPT_BOTTOM_R   8

Bottom-right centered.

Definition at line 125 of file random_map.h.

Referenced by make_doors(), and map_gen_onion().

◆ OPT_CENTERED

#define OPT_CENTERED   1

Centered.

Definition at line 122 of file random_map.h.

Referenced by make_square_spiral_layout(), and map_gen_onion().

◆ OPT_IRR_SPACE

#define OPT_IRR_SPACE   16

Irregularly/randomly spaced layers (default: regular).

Definition at line 126 of file random_map.h.

Referenced by bottom_centered_onion(), bottom_right_centered_onion(), centered_onion(), and map_gen_onion().

◆ OPT_LINEAR

#define OPT_LINEAR   2

Linear doors (default is nonlinear).

Definition at line 123 of file random_map.h.

Referenced by make_doors(), and map_gen_onion().

◆ OPT_NO_DOORS

#define OPT_NO_DOORS   256

Place walls insead of doors. Produces broken map.

Definition at line 129 of file random_map.h.

Referenced by make_doors(), and make_square_spiral_layout().

◆ OPT_RANDOM

#define OPT_RANDOM   0

Random option.

Definition at line 121 of file random_map.h.

◆ OPT_WALL_OFF

#define OPT_WALL_OFF   32

No outer wall.

Definition at line 127 of file random_map.h.

Referenced by map_gen_onion().

◆ OPT_WALLS_ONLY

#define OPT_WALLS_ONLY   64

Only walls.

Definition at line 128 of file random_map.h.

Referenced by layoutgen(), map_gen_onion(), and place_special_exit().