1 |
root |
1.1 |
/* random_map.c */ |
2 |
root |
1.3 |
extern void dump_layout(char **layout, random_map_params *RP); |
3 |
|
|
extern char **layoutgen(random_map_params *RP); |
4 |
|
|
extern char **symmetrize_layout(char **maze, int sym, random_map_params *RP); |
5 |
|
|
extern char **rotate_layout(char **maze, int rotation, random_map_params *RP); |
6 |
|
|
extern void roomify_layout(char **maze, random_map_params *RP); |
7 |
|
|
extern int can_make_wall(char **maze, int dx, int dy, int dir, random_map_params *RP); |
8 |
root |
1.1 |
extern int make_wall(char **maze, int x, int y, int dir); |
9 |
root |
1.3 |
extern void doorify_layout(char **maze, random_map_params *RP); |
10 |
|
|
extern void write_map_parameters_to_string(char *buf, random_map_params *RP); |
11 |
root |
1.5 |
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, uint32_t random_seed_n, int treasureoptions_n, float difficulty_increase); |
12 |
root |
1.1 |
extern void copy_object_with_inv(object *src_ob, object *dest_ob); |
13 |
|
|
/* room_gen_onion.c */ |
14 |
|
|
extern char **map_gen_onion(int xsize, int ysize, int option, int layers); |
15 |
|
|
extern void centered_onion(char **maze, int xsize, int ysize, int option, int layers); |
16 |
|
|
extern void bottom_centered_onion(char **maze, int xsize, int ysize, int option, int layers); |
17 |
|
|
extern void draw_onion(char **maze, float *xlocations, float *ylocations, int layers); |
18 |
|
|
extern void make_doors(char **maze, float *xlocations, float *ylocations, int layers, int options); |
19 |
|
|
extern void bottom_right_centered_onion(char **maze, int xsize, int ysize, int option, int layers); |
20 |
|
|
/* room_gen_spiral.c */ |
21 |
|
|
extern char **map_gen_spiral(int xsize, int ysize, int option); |
22 |
|
|
extern void connect_spirals(int xsize, int ysize, int sym, char **layout); |
23 |
|
|
/* maze_gen.c */ |
24 |
|
|
extern char **maze_gen(int xsize, int ysize, int option); |
25 |
|
|
extern void make_wall_free_list(int xsize, int ysize); |
26 |
|
|
extern void pop_wall_point(int *x, int *y); |
27 |
|
|
extern int find_free_point(char **maze, int *x, int *y, int xc, int yc, int xsize, int ysize); |
28 |
|
|
extern void fill_maze_full(char **maze, int x, int y, int xsize, int ysize); |
29 |
|
|
extern void fill_maze_sparse(char **maze, int x, int y, int xsize, int ysize); |
30 |
|
|
/* wall.c */ |
31 |
root |
1.3 |
extern int surround_flag(char **layout, int i, int j, random_map_params *RP); |
32 |
|
|
extern int surround_flag2(char **layout, int i, int j, random_map_params *RP); |
33 |
|
|
extern int surround_flag3(maptile *map, sint16 i, sint16 j, random_map_params *RP); |
34 |
|
|
extern int surround_flag4(maptile *map, int i, int j, random_map_params *RP); |
35 |
|
|
extern void make_map_walls(maptile *map, char **layout, char *w_style, random_map_params *RP); |
36 |
|
|
extern object *pick_joined_wall(object *the_wall, char **layout, int i, int j, random_map_params *RP); |
37 |
|
|
extern object *retrofit_joined_wall(maptile *the_map, int i, int j, int insert_flag, random_map_params *RP); |
38 |
root |
1.1 |
/* monster.c */ |
39 |
root |
1.2 |
extern void insert_multisquare_ob_in_map(object *new_obj, maptile *map); |
40 |
root |
1.3 |
extern void place_monsters(maptile *map, char *monsterstyle, int difficulty, random_map_params *RP); |
41 |
root |
1.1 |
/* door.c */ |
42 |
|
|
extern int surround_check2(char **layout, int i, int j, int Xsize, int Ysize); |
43 |
root |
1.3 |
extern void put_doors(maptile *the_map, char **maze, const char *doorstyle, random_map_params *RP); |
44 |
root |
1.1 |
/* decor.c */ |
45 |
root |
1.2 |
extern int obj_count_in_map(maptile *map, int x, int y); |
46 |
root |
1.3 |
extern void put_decor(maptile *map, char **maze, char *decorstyle, int decor_option, random_map_params *RP); |
47 |
root |
1.1 |
/* exit.c */ |
48 |
root |
1.3 |
extern void find_in_layout(int mode, char target, int *fx, int *fy, char **layout, random_map_params *RP); |
49 |
|
|
extern void place_exits(maptile *map, char **maze, char *exitstyle, int orientation, random_map_params *RP); |
50 |
|
|
extern void unblock_exits(maptile *map, char **maze, random_map_params *RP); |
51 |
root |
1.1 |
/* treasure.c */ |
52 |
root |
1.2 |
extern int wall_blocked(maptile *m, int x, int y); |
53 |
root |
1.3 |
extern void place_treasure(maptile *map, char **layout, char *treasure_style, int treasureoptions, random_map_params *RP); |
54 |
|
|
extern object *place_chest(int treasureoptions, int x, int y, maptile *map, maptile *style_map, int n_treasures, random_map_params *RP); |
55 |
|
|
extern object *find_closest_monster(maptile *map, int x, int y, random_map_params *RP); |
56 |
|
|
extern int keyplace(maptile *map, int x, int y, char *keycode, int door_flag, int n_keys, random_map_params *RP); |
57 |
|
|
extern object *find_monster_in_room_recursive(char **layout, maptile *map, int x, int y, random_map_params *RP); |
58 |
|
|
extern object *find_monster_in_room(maptile *map, int x, int y, random_map_params *RP); |
59 |
|
|
extern void find_spot_in_room_recursive(char **layout, int x, int y, random_map_params *RP); |
60 |
|
|
extern void find_spot_in_room(maptile *map, int x, int y, int *kx, int *ky, random_map_params *RP); |
61 |
|
|
extern void find_enclosed_spot(maptile *map, int *cx, int *cy, random_map_params *RP); |
62 |
root |
1.2 |
extern void remove_monsters(int x, int y, maptile *map); |
63 |
|
|
extern object **surround_by_doors(maptile *map, char **layout, int x, int y, int opts); |
64 |
|
|
extern object *door_in_square(maptile *map, int x, int y); |
65 |
root |
1.3 |
extern void find_doors_in_room_recursive(char **layout, maptile *map, int x, int y, object **doorlist, int *ndoors, random_map_params *RP); |
66 |
|
|
extern object **find_doors_in_room(maptile *map, int x, int y, random_map_params *RP); |
67 |
|
|
extern void lock_and_hide_doors(object **doorlist, maptile *map, int opts, random_map_params *RP); |
68 |
root |
1.1 |
/* special.c */ |
69 |
root |
1.2 |
extern void nuke_map_region(maptile *map, int xstart, int ystart, int xsize, int ysize); |
70 |
|
|
extern void include_map_in_map(maptile *dest_map, maptile *in_map, int x, int y); |
71 |
|
|
extern int find_spot_for_submap(maptile *map, char **layout, int *ix, int *iy, int xsize, int ysize); |
72 |
|
|
extern void place_fountain_with_specials(maptile *map); |
73 |
root |
1.3 |
extern void place_special_exit(maptile *map, int hole_type, random_map_params *RP); |
74 |
|
|
extern void place_specials_in_map(maptile *map, char **layout, random_map_params *RP); |
75 |
root |
1.1 |
/* style.c */ |
76 |
|
|
extern int load_dir(const char *dir, char ***namelist, int skip_dirs); |
77 |
root |
1.2 |
extern maptile *load_style_map(char *style_name); |
78 |
|
|
extern maptile *find_style(const char *dirname, const char *stylename, int difficulty); |
79 |
|
|
extern object *pick_random_object(maptile *style); |
80 |
root |
1.1 |
extern void free_style_maps(void); |
81 |
|
|
/* rogue_layout.c */ |
82 |
|
|
extern int surround_check(char **layout, int i, int j, int Xsize, int Ysize); |
83 |
|
|
extern char **roguelike_layout_gen(int xsize, int ysize, int options); |
84 |
|
|
/* snake.c */ |
85 |
|
|
extern char **make_snake_layout(int xsize, int ysize, int options); |
86 |
|
|
/* square_spiral.c */ |
87 |
|
|
extern void find_top_left_corner(char **maze, int *cx, int *cy); |
88 |
|
|
extern char **make_square_spiral_layout(int xsize, int ysize, int options); |
89 |
|
|
/* expand2x.c */ |
90 |
|
|
extern char **expand2x(char **layout, int xsize, int ysize); |