version 1.18 | | version 1.19 |
---|
| | |
/* | | /* random_map.c */ |
* This file was automatically generated by version 1.7 of cextract. | | |
* Manual editing not recommended. | | |
* | | |
* Created: Sat May 12 17:27:46 2001 | | |
*/ | | |
#ifndef __CEXTRACT__ | | |
#ifdef __STDC__ | | |
| | |
extern void dump_layout ( char **layout, RMParms *RP ); | | extern void dump_layout ( char **layout, RMParms *RP ); |
extern mapstruct *generate_random_map ( char *OutFileName, RMParms *RP ); | | extern mapstruct *generate_random_map ( char *OutFileName, RMParms *RP ); |
extern char **layoutgen ( RMParms *RP ); | | extern char **layoutgen ( RMParms *RP ); |
| | |
extern int make_wall ( char **maze, int x, int y, int dir ); | | extern int make_wall ( char **maze, int x, int y, int dir ); |
extern void doorify_layout ( char **maze, RMParms *RP ); | | extern void doorify_layout ( char **maze, RMParms *RP ); |
extern void write_map_parameters_to_string ( char *buf, RMParms *RP ); | | extern void write_map_parameters_to_string ( char *buf, RMParms *RP ); |
extern void write_parameters_to_string ( char *buf, int xsize_n, int ysize_n, char *wallstyle_n, char *floorstyle_n, char *monsterstyle_n, char *treasurestyle_n, char *layoutstyle_n, char *decorstyle_n, char *doorstyle_n, char *exitstyle_n, char *final_map_n, char *exit_on_final_map_n, char *this_map_n, int layoutoptions1_n, int layoutoptions2_n, int layoutoptions3_n, int symmetry_n, int dungeon_depth_n, int dungeon_level_n, int difficulty_n, int difficulty_given_n, int decoroptions_n, int orientation_n, int origin_x_n, int origin_y_n, int random_seed_n, int treasureoptions_n ); | | extern void write_parameters_to_string(char *buf, int xsize_n, int ysize_n, char *wallstyle_n, char *floorstyle_n, char *monsterstyle_n, char *treasurestyle_n, char *layoutstyle_n, char *decorstyle_n, char *doorstyle_n, char *exitstyle_n, char *final_map_n, char *exit_on_final_map_n, char *this_map_n, int layoutoptions1_n, int layoutoptions2_n, int layoutoptions3_n, int symmetry_n, int dungeon_depth_n, int dungeon_level_n, int difficulty_n, int difficulty_given_n, int decoroptions_n, int orientation_n, int origin_x_n, int origin_y_n, int random_seed_n, int treasureoptions_n, float difficulty_increase); |
extern void copy_object_with_inv ( object *src_ob, object *dest_ob ); | | extern void copy_object_with_inv ( object *src_ob, object *dest_ob ); |
| | /* room_gen_onion.c */ |
extern char **map_gen_onion ( int xsize, int ysize, int option, int layers ); | | extern char **map_gen_onion ( int xsize, int ysize, int option, int layers ); |
extern void centered_onion ( char **maze, int xsize, int ysize, int option, int layers ); | | extern void centered_onion ( char **maze, int xsize, int ysize, int option, int layers ); |
extern void bottom_centered_onion ( char **maze, int xsize, int ysize, int option, int layers ); | | extern void bottom_centered_onion ( char **maze, int xsize, int ysize, int option, int layers ); |
extern void draw_onion ( char **maze, float *xlocations, float *ylocations, int layers ); | | extern void draw_onion ( char **maze, float *xlocations, float *ylocations, int layers ); |
extern void make_doors ( char **maze, float *xlocations, float *ylocations, int layers, int options ); | | extern void make_doors ( char **maze, float *xlocations, float *ylocations, int layers, int options ); |
extern void bottom_right_centered_onion ( char **maze, int xsize, int ysize, int option, int layers ); | | extern void bottom_right_centered_onion ( char **maze, int xsize, int ysize, int option, int layers ); |
| | /* room_gen_spiral.c */ |
extern char **map_gen_spiral ( int xsize, int ysize, int option ); | | extern char **map_gen_spiral ( int xsize, int ysize, int option ); |
extern void connect_spirals ( int xsize, int ysize, int sym, char **layout ); | | extern void connect_spirals ( int xsize, int ysize, int sym, char **layout ); |
| | /* maze_gen.c */ |
extern char **maze_gen ( int xsize, int ysize, int option ); | | extern char **maze_gen ( int xsize, int ysize, int option ); |
extern void make_wall_free_list ( int xsize, int ysize ); | | extern void make_wall_free_list ( int xsize, int ysize ); |
extern void pop_wall_point ( int *x, int *y ); | | extern void pop_wall_point ( int *x, int *y ); |
extern int find_free_point ( char **maze, int *x, int *y, int xc, int yc, int xsize, int ysize ); | | extern int find_free_point ( char **maze, int *x, int *y, int xc, int yc, int xsize, int ysize ); |
extern void fill_maze_full ( char **maze, int x, int y, int xsize, int ysize ); | | extern void fill_maze_full ( char **maze, int x, int y, int xsize, int ysize ); |
extern void fill_maze_sparse ( char **maze, int x, int y, int xsize, int ysize ); | | extern void fill_maze_sparse ( char **maze, int x, int y, int xsize, int ysize ); |
extern int rmap_lex_read ( RMParms *RP ); | | /* floor.c */ |
extern void rmaprestart ( FILE *input_file ); | | |
extern void rmap_load_buffer_state ( void ); | | |
extern int load_parameters ( FILE *fp, int bufstate, RMParms *RP ); | | |
extern int set_random_map_variable ( RMParms *rp, char *buf ); | | |
extern mapstruct *make_map_floor ( char **layout, char *floorstyle, RMParms *RP ); | | extern mapstruct *make_map_floor ( char **layout, char *floorstyle, RMParms *RP ); |
| | /* wall.c */ |
extern int surround_flag ( char **layout, int i, int j, RMParms *RP ); | | extern int surround_flag ( char **layout, int i, int j, RMParms *RP ); |
extern int surround_flag2 ( char **layout, int i, int j, RMParms *RP ); | | extern int surround_flag2 ( char **layout, int i, int j, RMParms *RP ); |
extern int surround_flag3 ( mapstruct *map, sint16 i, sint16 j, RMParms *RP ); | | extern int surround_flag3 ( mapstruct *map, sint16 i, sint16 j, RMParms *RP ); |
| | |
extern void make_map_walls ( mapstruct *map, char **layout, char *w_style, RMParms *RP ); | | extern void make_map_walls ( mapstruct *map, char **layout, char *w_style, RMParms *RP ); |
extern object *pick_joined_wall ( object *the_wall, char **layout, int i, int j, RMParms *RP ); | | extern object *pick_joined_wall ( object *the_wall, char **layout, int i, int j, RMParms *RP ); |
extern object * retrofit_joined_wall ( mapstruct *the_map, int i, int j, int insert_flag, RMParms *RP ); | | extern object * retrofit_joined_wall ( mapstruct *the_map, int i, int j, int insert_flag, RMParms *RP ); |
| | /* monster.c */ |
extern void insert_multisquare_ob_in_map ( object *new_obj, mapstruct *map ); | | extern void insert_multisquare_ob_in_map ( object *new_obj, mapstruct *map ); |
extern void place_monsters ( mapstruct *map, char *monsterstyle, int difficulty, RMParms *RP ); | | extern void place_monsters ( mapstruct *map, char *monsterstyle, int difficulty, RMParms *RP ); |
| | /* door.c */ |
| | extern int surround_check2(char **layout, int i, int j, int Xsize, int Ysize); |
extern void put_doors ( mapstruct *the_map, char **maze, char *doorstyle, RMParms *RP ); | | extern void put_doors ( mapstruct *the_map, char **maze, char *doorstyle, RMParms *RP ); |
| | /* decor.c */ |
extern int obj_count_in_map ( mapstruct *map, int x, int y ); | | extern int obj_count_in_map ( mapstruct *map, int x, int y ); |
extern void put_decor ( mapstruct *map, char **maze, char *decorstyle, int decor_option, RMParms *RP ); | | extern void put_decor ( mapstruct *map, char **maze, char *decorstyle, int decor_option, RMParms *RP ); |
| | /* exit.c */ |
extern void find_in_layout ( int mode, char target, int *fx, int *fy, char **layout, RMParms *RP ); | | extern void find_in_layout ( int mode, char target, int *fx, int *fy, char **layout, RMParms *RP ); |
extern void place_exits ( mapstruct *map, char **maze, char *exitstyle, int orientation, RMParms *RP ); | | extern void place_exits ( mapstruct *map, char **maze, char *exitstyle, int orientation, RMParms *RP ); |
extern void unblock_exits ( mapstruct *map, char **maze, RMParms *RP ); | | extern void unblock_exits ( mapstruct *map, char **maze, RMParms *RP ); |
| | /* treasure.c */ |
extern int wall_blocked ( mapstruct *m, int x, int y ); | | extern int wall_blocked ( mapstruct *m, int x, int y ); |
extern void place_treasure ( mapstruct *map, char **layout, char *treasure_style, int treasureoptions, RMParms *RP ); | | extern void place_treasure ( mapstruct *map, char **layout, char *treasure_style, int treasureoptions, RMParms *RP ); |
extern object * place_chest ( int treasureoptions, int x, int y, mapstruct *map, mapstruct *style_map, int n_treasures, RMParms *RP ); | | extern object * place_chest ( int treasureoptions, int x, int y, mapstruct *map, mapstruct *style_map, int n_treasures, RMParms *RP ); |
| | |
extern void find_spot_in_room ( mapstruct *map, int x, int y, int *kx, int *ky, RMParms *RP ); | | extern void find_spot_in_room ( mapstruct *map, int x, int y, int *kx, int *ky, RMParms *RP ); |
extern void find_enclosed_spot ( mapstruct *map, int *cx, int *cy, RMParms *RP ); | | extern void find_enclosed_spot ( mapstruct *map, int *cx, int *cy, RMParms *RP ); |
extern void remove_monsters ( int x, int y, mapstruct *map ); | | extern void remove_monsters ( int x, int y, mapstruct *map ); |
extern object ** surround_by_doors ( mapstruct *map,char **maze, int x, int y, int opts ); | | extern object **surround_by_doors(mapstruct *map, char **layout, int x, int y, int opts); |
extern object *door_in_square ( mapstruct *map, int x, int y ); | | extern object *door_in_square ( mapstruct *map, int x, int y ); |
extern void find_doors_in_room_recursive ( char **layout, mapstruct *map, int x, int y, object **doorlist, int *ndoors, RMParms *RP ); | | extern void find_doors_in_room_recursive ( char **layout, mapstruct *map, int x, int y, object **doorlist, int *ndoors, RMParms *RP ); |
extern object** find_doors_in_room ( mapstruct *map, int x, int y, RMParms *RP ); | | extern object** find_doors_in_room ( mapstruct *map, int x, int y, RMParms *RP ); |
extern void lock_and_hide_doors ( object **doorlist, mapstruct *map, int opts, RMParms *RP ); | | extern void lock_and_hide_doors ( object **doorlist, mapstruct *map, int opts, RMParms *RP ); |
| | /* special.c */ |
extern void nuke_map_region ( mapstruct *map, int xstart, int ystart, int xsize, int ysize ); | | extern void nuke_map_region ( mapstruct *map, int xstart, int ystart, int xsize, int ysize ); |
extern void include_map_in_map ( mapstruct *dest_map, mapstruct *in_map, int x, int y ); | | extern void include_map_in_map ( mapstruct *dest_map, mapstruct *in_map, int x, int y ); |
extern int find_spot_for_submap ( mapstruct *map, char **layout, int *ix, int *iy, int xsize, int ysize ); | | extern int find_spot_for_submap ( mapstruct *map, char **layout, int *ix, int *iy, int xsize, int ysize ); |
extern void place_fountain_with_specials ( mapstruct *map ); | | extern void place_fountain_with_specials ( mapstruct *map ); |
extern void place_special_exit ( mapstruct * map, int hole_type, RMParms *RP ); | | extern void place_special_exit ( mapstruct * map, int hole_type, RMParms *RP ); |
extern void place_specials_in_map ( mapstruct *map, char **layout, RMParms *RP ); | | extern void place_specials_in_map ( mapstruct *map, char **layout, RMParms *RP ); |
extern int select_regular_files ( const struct dirent *the_entry ); | | /* style.c */ |
| | extern int load_dir(const char *dir, char ***namelist, int skip_dirs); |
extern mapstruct *load_style_map ( char *style_name ); | | extern mapstruct *load_style_map ( char *style_name ); |
extern mapstruct *find_style ( char *dirname, char *stylename, int difficulty ); | | extern mapstruct *find_style ( char *dirname, char *stylename, int difficulty ); |
extern object *pick_random_object ( mapstruct *style ); | | extern object *pick_random_object ( mapstruct *style ); |
extern void free_style_maps ( void ); | | extern void free_style_maps ( void ); |
| | /* rogue_layout.c */ |
extern int surround_check ( char **layout, int i, int j, int Xsize, int Ysize ); | | extern int surround_check ( char **layout, int i, int j, int Xsize, int Ysize ); |
extern char **roguelike_layout_gen ( int xsize, int ysize, int options ); | | extern char **roguelike_layout_gen ( int xsize, int ysize, int options ); |
| | /* snake.c */ |
extern char **make_snake_layout ( int xsize, int ysize, int options ); | | extern char **make_snake_layout ( int xsize, int ysize, int options ); |
| | /* square_spiral.c */ |
extern void find_top_left_corner ( char **maze, int *cx, int *cy ); | | extern void find_top_left_corner ( char **maze, int *cx, int *cy ); |
extern char **make_square_spiral_layout ( int xsize, int ysize, int options ); | | extern char **make_square_spiral_layout ( int xsize, int ysize, int options ); |
| | /* expand2x.c */ |
extern char **expand2x ( char **layout, int xsize, int ysize ); | | extern char **expand2x ( char **layout, int xsize, int ysize ); |
extern int surround_check2(char **layout,int i,int j,int Xsize, int Ysize); | | |
| | |
#endif /* __STDC__ */ | | |
#endif /* __CEXTRACT__ */ | | |