Crossfire Server, Trunk
|
#include <random_map.h>
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] |
bool | link_source_map |
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 region * | region |
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 |
Random map parameters.
Definition at line 14 of file random_map.h.
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().
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().
int RMParms::decoroptions |
Definition at line 86 of file random_map.h.
Referenced by generate_random_map(), place_special_exit(), and write_map_parameters_to_string().
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 |
Definition at line 80 of file random_map.h.
Referenced by generate_random_map(), place_chest(), place_special_exit(), place_specials_in_map(), place_treasure(), and write_map_parameters_to_string().
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().
float RMParms::difficulty_increase |
Definition at line 83 of file random_map.h.
Referenced by generate_random_map(), place_special_exit(), and write_map_parameters_to_string().
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 |
Definition at line 85 of file random_map.h.
Referenced by place_exits(), place_special_exit(), and write_map_parameters_to_string().
int RMParms::dungeon_level |
Definition at line 84 of file random_map.h.
Referenced by generate_random_map(), keyplace(), place_exits(), place_special_exit(), and write_map_parameters_to_string().
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().
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().
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().
int RMParms::expand2x |
Definition at line 76 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 59 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 57 of file random_map.h.
Referenced by enter_random_map(), place_exits(), place_special_exit(), 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 77 of file random_map.h.
Referenced by layoutgen(), place_special_exit(), and write_map_parameters_to_string().
int RMParms::layoutoptions2 |
Definition at line 78 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().
bool RMParms::link_source_map |
Whether to set the reset group (if not already defined) of the source map for this random map.
Definition at line 104 of file random_map.h.
Referenced by enter_random_map(), and write_map_parameters_to_string().
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().
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 101 of file random_map.h.
Referenced by make_map_floor(), and write_map_parameters_to_string().
int RMParms::orientation |
Definition at line 87 of file random_map.h.
Referenced by generate_random_map(), place_special_exit(), and write_map_parameters_to_string().
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().
int RMParms::origin_x |
Definition at line 89 of file random_map.h.
Referenced by enter_random_map(), enter_random_template_map(), place_exits(), place_special_exit(), and write_map_parameters_to_string().
int RMParms::origin_y |
Definition at line 88 of file random_map.h.
Referenced by enter_random_map(), enter_random_template_map(), place_exits(), place_special_exit(), and write_map_parameters_to_string().
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().
int RMParms::random_seed |
Definition at line 90 of file random_map.h.
Referenced by generate_random_map(), place_special_exit(), and write_map_parameters_to_string().
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().
int RMParms::symmetry |
Definition at line 79 of file random_map.h.
Referenced by layoutgen(), place_special_exit(), and write_map_parameters_to_string().
int RMParms::symmetry_used |
Definition at line 95 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 65 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 93 of file random_map.h.
Referenced by place_monsters(), and place_treasure().
int RMParms::treasureoptions |
Definition at line 94 of file random_map.h.
Referenced by generate_random_map(), place_special_exit(), and write_map_parameters_to_string().
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 |
Definition at line 74 of file random_map.h.
Referenced by can_make_wall(), doorify_layout(), dump_layout(), enter_random_map(), enter_random_template_map(), find_doors_in_room(), find_in_layout(), find_monster_in_room(), find_spot_in_room(), generate_map(), generate_random_map(), keyplace(), layoutgen(), make_map_floor(), make_map_walls(), place_exits(), place_monsters(), place_special_exit(), place_treasure(), put_decor(), put_doors(), roomify_layout(), rotate_layout(), symmetrize_layout(), unblock_exits(), and write_map_parameters_to_string().
int RMParms::Ysize |
Definition at line 75 of file random_map.h.
Referenced by can_make_wall(), doorify_layout(), dump_layout(), enter_random_map(), enter_random_template_map(), find_doors_in_room(), find_in_layout(), find_monster_in_room(), find_spot_in_room(), generate_map(), generate_random_map(), keyplace(), layoutgen(), make_map_floor(), make_map_walls(), place_exits(), place_monsters(), place_special_exit(), place_treasure(), put_decor(), put_doors(), roomify_layout(), rotate_layout(), symmetrize_layout(), unblock_exits(), and write_map_parameters_to_string().