Crossfire Server, Branches 1.12  R18729
Random map symetry

Macros

#define NO_SYM   1
 
#define RANDOM_SYM   0
 
#define X_SYM   2
 
#define XY_SYM   4
 
#define Y_SYM   3
 

Detailed Description

Symmetry definitions – used in this file AND in treasure.c, the numerical values matter so don't change them.

Macro Definition Documentation

#define NO_SYM   1

No symmetry.

Definition at line 124 of file random_map.h.

Referenced by layoutgen(), and symmetrize_layout().

#define RANDOM_SYM   0

Random symmetry.

Definition at line 123 of file random_map.h.

Referenced by layoutgen().

#define X_SYM   2

Vertical symmetry.

Definition at line 125 of file random_map.h.

Referenced by connect_spirals(), layoutgen(), and symmetrize_layout().

#define XY_SYM   4

Reflection.

Definition at line 127 of file random_map.h.

Referenced by connect_spirals(), layoutgen(), and symmetrize_layout().

#define Y_SYM   3

Horizontal symmetry.

Definition at line 126 of file random_map.h.

Referenced by connect_spirals(), layoutgen(), and symmetrize_layout().