Crossfire Server, Trunk  R20513
Data Structures | Macros | Typedefs | Functions
random_map.h File Reference

Random map related variables. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RMParms
 Random map parameters. More...
 

Macros

#define BC_RANDOM(x)   ((int) ((RANDOM()%(x)+RANDOM()%(x)+RANDOM()%(x))/3.))
 Macro to get a strongly centered random distribution, from 0 to x, centered at x/2. More...
 
#define MAZE_LAYOUT   2
 
#define MIN_RANDOM_MAP_SIZE   10
 Minimal size a random should have to actually be generated. More...
 
#define NO_SYM   1
 No symmetry. More...
 
#define NROFLAYOUTS   6
 
#define ONION_LAYOUT   1
 
#define OPT_BOTTOM_C   4
 Bottom-centered. More...
 
#define OPT_BOTTOM_R   8
 Bottom-right centered. More...
 
#define OPT_CENTERED   1
 Centered. More...
 
#define OPT_IRR_SPACE   16
 Irregularly/randomly spaced layers (default: regular). More...
 
#define OPT_LINEAR   2
 Linear doors (default is nonlinear). More...
 
#define OPT_NO_DOORS   256
 Place walls insead of doors. More...
 
#define OPT_RANDOM   0
 Random option. More...
 
#define OPT_WALL_OFF   32
 No outer wall. More...
 
#define OPT_WALLS_ONLY   64
 Only walls. More...
 
#define RANDOM_SYM   0
 Random symmetry. More...
 
#define RM_SIZE   512
 
#define ROGUELIKE_LAYOUT   4
 
#define SNAKE_LAYOUT   5
 
#define SPIRAL_LAYOUT   3
 
#define SQUARE_SPIRAL_LAYOUT   6
 
#define X_SYM   2
 Vertical symmetry. More...
 
#define XY_SYM   4
 Reflection. More...
 
#define Y_SYM   3
 Horizontal symmetry. More...
 

Typedefs

typedef struct RMParms RMParms
 Random map parameters. More...
 

Functions

int load_parameters (FILE *fp, int bufstate, RMParms *RP)
 
int set_random_map_variable (RMParms *rp, const char *buf)
 

Detailed Description

Random map related variables.

Definition in file random_map.h.

Macro Definition Documentation

#define BC_RANDOM (   x)    ((int) ((RANDOM()%(x)+RANDOM()%(x)+RANDOM()%(x))/3.))

Macro to get a strongly centered random distribution, from 0 to x, centered at x/2.

Definition at line 151 of file random_map.h.

Referenced by place_chest(), and place_treasure().

#define MIN_RANDOM_MAP_SIZE   10

Minimal size a random should have to actually be generated.

Definition at line 146 of file random_map.h.

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

#define RM_SIZE   512

Definition at line 9 of file random_map.h.

Typedef Documentation

typedef struct RMParms RMParms

Random map parameters.

Function Documentation

int load_parameters ( FILE *  fp,
int  bufstate,
RMParms RP 
)

Referenced by generate_map().

Here is the caller graph for this function:

int set_random_map_variable ( RMParms rp,
const char *  buf 
)