Crossfire Server, Trunk  R20513
Data Fields
RMParms Struct Reference

Random map parameters. More...

#include <random_map.h>

Collaboration diagram for RMParms:
Collaboration graph

Data Fields

int decoroptions
 
char decorstyle [RM_SIZE]
 Name of the decor style file, in /styles/decorstyles, can be an empty string in which case a random one is chosen, or "none". More...
 
int difficulty
 
int difficulty_given
 If non zero, this means the difficulty was not zero initially. More...
 
float difficulty_increase
 
char doorstyle [RM_SIZE]
 Name of the doors style file, in /styles/doorstyles, see put_doors(). More...
 
int dungeon_depth
 
int dungeon_level
 
char dungeon_name [RM_SIZE]
 If not empty, will be used in the name of the random keys. More...
 
char exit_on_final_map [RM_SIZE]
 If this is "no", then no exit will be made to the final map from the previous random map. More...
 
char exitstyle [RM_SIZE]
 Name of the exit style files, in /styles/exitstyles/{up,down}, can be an empty string in which case a random one is chosen, or "none". More...
 
int expand2x
 
char final_exit_archetype [RM_SIZE]
 If not empty, the archetype name of the exit leading to the final map. More...
 
char final_map [RM_SIZE]
 If not empty, the path of the final map this whole maze leads to. More...
 
char floorstyle [RM_SIZE]
 Name of the floor style file, in /styles/floors, can be an empty string in which case a random one is chosen, or "none". More...
 
int layoutoptions1
 
int layoutoptions2
 
char layoutstyle [RM_SIZE]
 Contains the layout type to generate, see layoutgen() for valid types. More...
 
int map_layout_style
 
char monsterstyle [RM_SIZE]
 Name of the monster style directory, in /styles/monsters, can be an empty string in which case a random one is chosen. More...
 
int multiple_floors
 If non zero, then the map will have multiple floors, else only one floor will be used. More...
 
int orientation
 
char origin_map [RM_SIZE]
 Path to the map this random map is generated from, to make an exit back. More...
 
int origin_x
 
int origin_y
 
int random_seed
 
struct regiondefregion
 
int symmetry
 
int symmetry_used
 
char this_map [RM_SIZE]
 Path of the map from which the random map(s) were created. More...
 
long unsigned int total_map_hp
 Total hit points of the monsters in the map, used for treasure generation. More...
 
int treasureoptions
 
char treasurestyle [RM_SIZE]
 Name of the treasures style file, in /styles/treasurestyles, can be an empty string in which case a random one is chosen, or "none". More...
 
char wall_name [RM_SIZE]
 Will contain the actual wall archetype, can be an empty string in which case a random one is chosen, or "none". More...
 
char wallstyle [RM_SIZE]
 Name of the wall style file, in /styles/wallstyles, can be an empty string in which case a random one is chosen, or "none". More...
 
int Xsize
 
int Ysize
 

Detailed Description

Random map parameters.

Definition at line 14 of file random_map.h.

Field Documentation

int RMParms::decoroptions
char RMParms::decorstyle[RM_SIZE]

Name of the decor style file, in /styles/decorstyles, can be an empty string in which case a random one is chosen, or "none".

Definition at line 48 of file random_map.h.

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

int RMParms::difficulty
int RMParms::difficulty_given

If non zero, this means the difficulty was not zero initially.

Definition at line 77 of file random_map.h.

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

float RMParms::difficulty_increase
char RMParms::doorstyle[RM_SIZE]

Name of the doors style file, in /styles/doorstyles, see put_doors().

Definition at line 43 of file random_map.h.

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

int RMParms::dungeon_depth
int RMParms::dungeon_level
char RMParms::dungeon_name[RM_SIZE]

If not empty, will be used in the name of the random keys.

Definition at line 67 of file random_map.h.

Referenced by keyplace(), and write_map_parameters_to_string().

char RMParms::exit_on_final_map[RM_SIZE]

If this is "no", then no exit will be made to the final map from the previous random map.

Definition at line 65 of file random_map.h.

Referenced by place_exits(), place_special_exit(), and write_map_parameters_to_string().

char RMParms::exitstyle[RM_SIZE]

Name of the exit style files, in /styles/exitstyles/{up,down}, can be an empty string in which case a random one is chosen, or "none".

Definition at line 58 of file random_map.h.

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

int RMParms::expand2x

Definition at line 71 of file random_map.h.

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

char RMParms::final_exit_archetype[RM_SIZE]

If not empty, the archetype name of the exit leading to the final map.

Definition at line 54 of file random_map.h.

Referenced by place_exits(), and write_map_parameters_to_string().

char RMParms::final_map[RM_SIZE]

If not empty, the path of the final map this whole maze leads to.

Definition at line 52 of file random_map.h.

Referenced by enter_random_map(), CREResourcesWindow::fillRandomMaps(), place_exits(), place_special_exit(), teardown(), and write_map_parameters_to_string().

char RMParms::floorstyle[RM_SIZE]

Name of the floor style file, in /styles/floors, can be an empty string in which case a random one is chosen, or "none".

Definition at line 29 of file random_map.h.

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

int RMParms::layoutoptions1

Definition at line 72 of file random_map.h.

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

int RMParms::layoutoptions2

Definition at line 73 of file random_map.h.

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

char RMParms::layoutstyle[RM_SIZE]

Contains the layout type to generate, see layoutgen() for valid types.

Definition at line 41 of file random_map.h.

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

int RMParms::map_layout_style

Definition at line 86 of file random_map.h.

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

char RMParms::monsterstyle[RM_SIZE]

Name of the monster style directory, in /styles/monsters, can be an empty string in which case a random one is chosen.

Definition at line 34 of file random_map.h.

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

int RMParms::multiple_floors

If non zero, then the map will have multiple floors, else only one floor will be used.

Definition at line 96 of file random_map.h.

Referenced by make_map_floor(), and write_map_parameters_to_string().

int RMParms::orientation
char RMParms::origin_map[RM_SIZE]

Path to the map this random map is generated from, to make an exit back.

Definition at line 50 of file random_map.h.

Referenced by enter_random_map(), enter_random_template_map(), place_exits(), and teardown().

int RMParms::origin_x
int RMParms::origin_y
int RMParms::random_seed
struct regiondef* RMParms::region
int RMParms::symmetry

Definition at line 74 of file random_map.h.

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

int RMParms::symmetry_used

Definition at line 90 of file random_map.h.

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

char RMParms::this_map[RM_SIZE]

Path of the map from which the random map(s) were created.

Definition at line 60 of file random_map.h.

Referenced by place_special_exit(), and write_map_parameters_to_string().

long unsigned int RMParms::total_map_hp

Total hit points of the monsters in the map, used for treasure generation.

Definition at line 88 of file random_map.h.

Referenced by place_monsters(), and place_treasure().

int RMParms::treasureoptions
char RMParms::treasurestyle[RM_SIZE]

Name of the treasures style file, in /styles/treasurestyles, can be an empty string in which case a random one is chosen, or "none".

Definition at line 39 of file random_map.h.

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

char RMParms::wall_name[RM_SIZE]

Will contain the actual wall archetype, can be an empty string in which case a random one is chosen, or "none".

Definition at line 24 of file random_map.h.

Referenced by make_map_walls(), and retrofit_joined_wall().

char RMParms::wallstyle[RM_SIZE]

Name of the wall style file, in /styles/wallstyles, can be an empty string in which case a random one is chosen, or "none".

Definition at line 19 of file random_map.h.

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

int RMParms::Xsize
int RMParms::Ysize

The documentation for this struct was generated from the following file: