Crossfire Server, Trunk
RMParms Struct Reference

#include <random_map.h>

+ Collaboration diagram for RMParms:

Data Fields

char cheststyle [RM_SIZE]
 
int darkness
 
int decoroptions
 
char decorstyle [RM_SIZE]
 
int difficulty
 
int difficulty_given
 
float difficulty_increase
 
char doorstyle [RM_SIZE]
 
int dungeon_depth
 
int dungeon_level
 
char dungeon_name [RM_SIZE]
 
char exit_on_final_map [RM_SIZE]
 
char exitstyle [RM_SIZE]
 
int expand2x
 
char final_exit_archetype [RM_SIZE]
 
char final_map [RM_SIZE]
 
char floorstyle [RM_SIZE]
 
int layoutoptions1
 
int layoutoptions2
 
char layoutstyle [RM_SIZE]
 
int map_layout_style
 
char monsterstyle [RM_SIZE]
 
int multiple_floors
 
int orientation
 
char origin_map [RM_SIZE]
 
int origin_x
 
int origin_y
 
int outdoor
 
int random_seed
 
struct regionregion
 
int symmetry
 
int symmetry_used
 
char this_map [RM_SIZE]
 
long unsigned int total_map_hp
 
int treasureoptions
 
char treasurestyle [RM_SIZE]
 
char wall_name [RM_SIZE]
 
char wallstyle [RM_SIZE]
 
int Xsize
 
int Ysize
 

Detailed Description

Random map parameters.

Definition at line 14 of file random_map.h.

Field Documentation

◆ cheststyle

char RMParms::cheststyle[RM_SIZE]

Name of the chests style file, in /styles/cheststyles, can be an empty string in which case a random one is chosen.

Definition at line 53 of file random_map.h.

Referenced by place_chest(), and write_map_parameters_to_string().

◆ darkness

int RMParms::darkness

Map darkness.

Definition at line 102 of file random_map.h.

Referenced by generate_random_map(), and write_map_parameters_to_string().

◆ decoroptions

int RMParms::decoroptions

◆ decorstyle

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().

◆ difficulty

◆ difficulty_given

int RMParms::difficulty_given

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

Definition at line 82 of file random_map.h.

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

◆ difficulty_increase

float RMParms::difficulty_increase

◆ doorstyle

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().

◆ dungeon_depth

int RMParms::dungeon_depth

Definition at line 85 of file random_map.h.

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

◆ dungeon_level

int RMParms::dungeon_level

◆ dungeon_name

char RMParms::dungeon_name[RM_SIZE]

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

Definition at line 72 of file random_map.h.

Referenced by keyplace(), and write_map_parameters_to_string().

◆ exit_on_final_map

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 70 of file random_map.h.

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

◆ exitstyle

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 63 of file random_map.h.

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

◆ expand2x

int RMParms::expand2x

Definition at line 76 of file random_map.h.

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

◆ final_exit_archetype

char RMParms::final_exit_archetype[RM_SIZE]

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

Definition at line 59 of file random_map.h.

Referenced by place_exits(), and write_map_parameters_to_string().

◆ final_map

char RMParms::final_map[RM_SIZE]

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

Definition at line 57 of file random_map.h.

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

◆ floorstyle

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().

◆ layoutoptions1

int RMParms::layoutoptions1

Definition at line 77 of file random_map.h.

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

◆ layoutoptions2

int RMParms::layoutoptions2

Definition at line 78 of file random_map.h.

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

◆ layoutstyle

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().

◆ map_layout_style

int RMParms::map_layout_style

Definition at line 91 of file random_map.h.

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

◆ monsterstyle

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().

◆ multiple_floors

int RMParms::multiple_floors

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

Definition at line 101 of file random_map.h.

Referenced by make_map_floor(), and write_map_parameters_to_string().

◆ orientation

int RMParms::orientation

◆ origin_map

char RMParms::origin_map[RM_SIZE]

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

Definition at line 55 of file random_map.h.

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

◆ origin_x

◆ origin_y

◆ outdoor

int RMParms::outdoor

Whether generated map is outdoor or not.

Definition at line 103 of file random_map.h.

Referenced by write_map_parameters_to_string().

◆ random_seed

int RMParms::random_seed

◆ region

struct region* RMParms::region

Definition at line 96 of file random_map.h.

Referenced by enter_random_map(), enter_random_template_map(), and generate_random_map().

◆ symmetry

int RMParms::symmetry

Definition at line 79 of file random_map.h.

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

◆ symmetry_used

int RMParms::symmetry_used

Definition at line 95 of file random_map.h.

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

◆ this_map

char RMParms::this_map[RM_SIZE]

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

Definition at line 65 of file random_map.h.

Referenced by place_special_exit(), and write_map_parameters_to_string().

◆ total_map_hp

long unsigned int RMParms::total_map_hp

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

Definition at line 93 of file random_map.h.

Referenced by place_monsters(), and place_treasure().

◆ treasureoptions

int RMParms::treasureoptions

◆ treasurestyle

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().

◆ wall_name

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().

◆ wallstyle

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().

◆ Xsize

◆ Ysize


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