Crossfire Server, Trunk
rproto.h
Go to the documentation of this file.
1 #ifndef _RPROTO_H
2 #define _RPROTO_H
3 
4 /* random_map.c */
5 extern void dump_layout(char **layout, RMParms *RP);
6 extern mapstruct *generate_random_map(const char *OutFileName, RMParms *RP, char **use_layout, sstring reset_group);
7 extern char **layoutgen(RMParms *RP);
8 extern char **symmetrize_layout(char **maze, int sym, RMParms *RP);
9 extern char **rotate_layout(char **maze, int rotation, RMParms *RP);
10 extern void roomify_layout(char **maze, RMParms *RP);
11 extern int can_make_wall(char **maze, int dx, int dy, int dir, RMParms *RP);
12 extern int make_wall(char **maze, int x, int y, int dir);
13 extern void doorify_layout(char **maze, RMParms *RP);
15 /* room_gen_onion.c */
16 extern char **map_gen_onion(int xsize, int ysize, int option, int layers);
17 extern void centered_onion(char **maze, int xsize, int ysize, int option, int layers);
18 extern void bottom_centered_onion(char **maze, int xsize, int ysize, int option, int layers);
19 extern void draw_onion(char **maze, float *xlocations, float *ylocations, int layers);
20 extern void make_doors(char **maze, float *xlocations, float *ylocations, int layers, int options);
21 extern void bottom_right_centered_onion(char **maze, int xsize, int ysize, int option, int layers);
22 /* room_gen_spiral.c */
23 extern char **map_gen_spiral(int xsize, int ysize, int option, int _unused_layers);
24 extern void connect_spirals(int xsize, int ysize, int sym, char **layout);
25 /* maze_gen.c */
26 extern char **maze_gen(int xsize, int ysize, int option, int _unused_layers);
27 /* floor.c */
28 extern mapstruct *make_map_floor(char **layout, char *floorstyle, RMParms *RP);
29 /* wall.c */
30 extern int surround_flag(char **layout, int i, int j, RMParms *RP);
31 extern int surround_flag2(char **layout, int i, int j, RMParms *RP);
32 extern int surround_flag3(mapstruct *map, int i, int j, RMParms *RP);
33 extern int surround_flag4(mapstruct *map, int i, int j, RMParms *RP);
34 extern void make_map_walls(mapstruct *map, char **layout, char *w_style, RMParms *RP);
35 extern object *pick_joined_wall(object *the_wall, char **layout, int i, int j, RMParms *RP);
36 extern object *retrofit_joined_wall(mapstruct *the_map, int i, int j, int insert_flag, RMParms *RP);
37 /* monster.c */
38 extern void place_monsters(mapstruct *map, char *monsterstyle, int difficulty, RMParms *RP);
39 /* door.c */
40 extern int surround_check2(char **layout, int i, int j, int Xsize, int Ysize);
41 extern void put_doors(mapstruct *the_map, char **maze, const char *doorstyle, RMParms *RP);
42 /* decor.c */
43 extern int obj_count_in_map(mapstruct *map, int x, int y);
44 extern void put_decor(mapstruct *map, char **maze, char *decorstyle, int decor_option, RMParms *RP);
45 /* exit.c */
46 extern void find_in_layout(int mode, char target, int *fx, int *fy, char **layout, RMParms *RP);
47 extern void place_exits(mapstruct *map, char **maze, char *exitstyle, int orientation, RMParms *RP);
48 extern void unblock_exits(mapstruct *map, char **maze, RMParms *RP);
49 /* treasure.c */
50 extern int wall_blocked(mapstruct *m, int x, int y);
51 extern void place_treasure(mapstruct *map, char **layout, char *treasure_style, int treasureoptions, RMParms *RP);
52 extern object *place_chest(int treasureoptions, int x, int y, mapstruct *map, int n_treasures, RMParms *RP);
53 extern object *find_closest_monster(mapstruct *map, int x, int y, RMParms *RP);
54 extern int keyplace(mapstruct *map, int x, int y, char *keycode, int door_flag, int n_keys, RMParms *RP);
55 extern object *find_monster_in_room_recursive(char **layout, mapstruct *map, int x, int y, RMParms *RP);
56 extern object *find_monster_in_room(mapstruct *map, int x, int y, RMParms *RP);
57 extern int find_spot_in_room(mapstruct *map, int x, int y, int *kx, int *ky, RMParms *RP);
58 extern void find_enclosed_spot(mapstruct *map, int *cx, int *cy, RMParms *RP);
59 extern void remove_monsters(int x, int y, mapstruct *map);
60 extern void find_doors_in_room_recursive(char **layout, mapstruct *map, int x, int y, object **doorlist, int *ndoors, RMParms *RP);
61 extern object **find_doors_in_room(mapstruct *map, int x, int y, RMParms *RP);
62 extern void lock_and_hide_doors(object **doorlist, mapstruct *map, int opts, RMParms *RP);
63 /* special.c */
64 extern void nuke_map_region(mapstruct *map, int xstart, int ystart, int xsize, int ysize);
65 extern void include_map_in_map(mapstruct *dest_map, const mapstruct *in_map, int x, int y);
66 extern int find_spot_for_submap(mapstruct *map, char **layout, int *ix, int *iy, int xsize, int ysize);
68 extern void place_special_exit(mapstruct *map, int hole_type, const RMParms *RP);
69 extern void place_specials_in_map(mapstruct *map, char **layout, RMParms *RP);
70 /* style.c */
71 extern int load_dir(const char *dir, char ***namelist, int skip_dirs);
72 extern mapstruct *load_style_map(char *style_name);
73 extern mapstruct *find_style(const char *dirname, const char *stylename, int difficulty);
74 extern object *pick_random_object(mapstruct *style);
75 extern void free_style_maps(void);
76 /* rogue_layout.c */
77 extern int surround_check(char **layout, int i, int j, int Xsize, int Ysize);
78 extern char **roguelike_layout_gen(int xsize, int ysize, int options, int _unused_layers);
79 /* snake.c */
80 extern char **make_snake_layout(int xsize, int ysize, int _unused_options, int _unused_layers);
81 /* square_spiral.c */
82 extern void find_top_left_corner(char **maze, int *cx, int *cy);
83 extern char **make_square_spiral_layout(int xsize, int ysize, int _unused_options, int _unused_layers);
84 /* expand2x.c */
85 extern char **expand2x(char **layout, int xsize, int ysize);
86 
87 #endif
lock_and_hide_doors
void lock_and_hide_doors(object **doorlist, mapstruct *map, int opts, RMParms *RP)
Definition: treasure.cpp:1005
find_in_layout
void find_in_layout(int mode, char target, int *fx, int *fy, char **layout, RMParms *RP)
Definition: exit.cpp:47
roguelike_layout_gen
char ** roguelike_layout_gen(int xsize, int ysize, int options, int _unused_layers)
Definition: rogue_layout.cpp:309
options
static struct Command_Line_Options options[]
Definition: init.cpp:376
layout
Definition: main.cpp:84
nuke_map_region
void nuke_map_region(mapstruct *map, int xstart, int ystart, int xsize, int ysize)
Definition: special.cpp:59
retrofit_joined_wall
object * retrofit_joined_wall(mapstruct *the_map, int i, int j, int insert_flag, RMParms *RP)
Definition: wall.cpp:314
find_doors_in_room
object ** find_doors_in_room(mapstruct *map, int x, int y, RMParms *RP)
Definition: treasure.cpp:920
diamondslots.x
x
Definition: diamondslots.py:15
maze_gen
char ** maze_gen(int xsize, int ysize, int option, int _unused_layers)
Definition: maze_gen.cpp:59
rotate_layout
char ** rotate_layout(char **maze, int rotation, RMParms *RP)
Definition: random_map.cpp:441
map_gen_onion
char ** map_gen_onion(int xsize, int ysize, int option, int layers)
Definition: room_gen_onion.cpp:70
can_make_wall
int can_make_wall(char **maze, int dx, int dy, int dir, RMParms *RP)
Definition: random_map.cpp:558
make_square_spiral_layout
char ** make_square_spiral_layout(int xsize, int ysize, int _unused_options, int _unused_layers)
Definition: square_spiral.cpp:80
layoutgen
char ** layoutgen(RMParms *RP)
Definition: random_map.cpp:225
find_spot_in_room
int find_spot_in_room(mapstruct *map, int x, int y, int *kx, int *ky, RMParms *RP)
Definition: treasure.cpp:635
keyplace
int keyplace(mapstruct *map, int x, int y, char *keycode, int door_flag, int n_keys, RMParms *RP)
Definition: treasure.cpp:385
centered_onion
void centered_onion(char **maze, int xsize, int ysize, int option, int layers)
Definition: room_gen_onion.cpp:141
find_style
mapstruct * find_style(const char *dirname, const char *stylename, int difficulty)
Definition: style.cpp:180
bottom_centered_onion
void bottom_centered_onion(char **maze, int xsize, int ysize, int option, int layers)
Definition: room_gen_onion.cpp:219
generate_random_map
mapstruct * generate_random_map(const char *OutFileName, RMParms *RP, char **use_layout, sstring reset_group)
Definition: random_map.cpp:75
roomify_layout
void roomify_layout(char **maze, RMParms *RP)
Definition: random_map.cpp:510
map_gen_spiral
char ** map_gen_spiral(int xsize, int ysize, int option, int _unused_layers)
Definition: room_gen_spiral.cpp:62
surround_flag2
int surround_flag2(char **layout, int i, int j, RMParms *RP)
Definition: wall.cpp:77
obj_count_in_map
int obj_count_in_map(mapstruct *map, int x, int y)
Definition: decor.cpp:39
RMParms
Definition: random_map.h:14
unblock_exits
void unblock_exits(mapstruct *map, char **maze, RMParms *RP)
Definition: exit.cpp:401
surround_check
int surround_check(char **layout, int i, int j, int Xsize, int Ysize)
Definition: rogue_layout.cpp:280
m
static event_registration m
Definition: citylife.cpp:425
disinfect.map
map
Definition: disinfect.py:4
pick_joined_wall
object * pick_joined_wall(object *the_wall, char **layout, int i, int j, RMParms *RP)
Definition: wall.cpp:255
surround_check2
int surround_check2(char **layout, int i, int j, int Xsize, int Ysize)
Definition: door.cpp:43
expand2x
char ** expand2x(char **layout, int xsize, int ysize)
Definition: expand2x.cpp:43
place_specials_in_map
void place_specials_in_map(mapstruct *map, char **layout, RMParms *RP)
Definition: special.cpp:396
make_map_walls
void make_map_walls(mapstruct *map, char **layout, char *w_style, RMParms *RP)
Definition: wall.cpp:184
CFInsulter.style
style
Definition: CFInsulter.py:69
surround_flag
int surround_flag(char **layout, int i, int j, RMParms *RP)
Definition: wall.cpp:40
make_wall
int make_wall(char **maze, int x, int y, int dir)
Definition: random_map.cpp:658
symmetrize_layout
char ** symmetrize_layout(char **maze, int sym, RMParms *RP)
Definition: random_map.cpp:360
include_map_in_map
void include_map_in_map(mapstruct *dest_map, const mapstruct *in_map, int x, int y)
Definition: special.cpp:86
StringBuffer
Definition: stringbuffer.cpp:25
remove_monsters
void remove_monsters(int x, int y, mapstruct *map)
Definition: treasure.cpp:764
draw_onion
void draw_onion(char **maze, float *xlocations, float *ylocations, int layers)
Definition: room_gen_onion.cpp:306
place_treasure
void place_treasure(mapstruct *map, char **layout, char *treasure_style, int treasureoptions, RMParms *RP)
Definition: treasure.cpp:92
connect_spirals
void connect_spirals(int xsize, int ysize, int sym, char **layout)
Definition: room_gen_spiral.cpp:159
find_closest_monster
object * find_closest_monster(mapstruct *map, int x, int y, RMParms *RP)
Definition: treasure.cpp:335
free_style_maps
void free_style_maps(void)
Definition: style.cpp:312
find_monster_in_room_recursive
object * find_monster_in_room_recursive(char **layout, mapstruct *map, int x, int y, RMParms *RP)
Definition: treasure.cpp:492
mapstruct
Definition: map.h:313
sstring
const typedef char * sstring
Definition: sstring.h:2
find_doors_in_room_recursive
void find_doors_in_room_recursive(char **layout, mapstruct *map, int x, int y, object **doorlist, int *ndoors, RMParms *RP)
Definition: treasure.cpp:870
place_exits
void place_exits(mapstruct *map, char **maze, char *exitstyle, int orientation, RMParms *RP)
Definition: exit.cpp:144
put_doors
void put_doors(mapstruct *the_map, char **maze, const char *doorstyle, RMParms *RP)
Definition: door.cpp:73
place_monsters
void place_monsters(mapstruct *map, char *monsterstyle, int difficulty, RMParms *RP)
Definition: monster.cpp:38
find_spot_for_submap
int find_spot_for_submap(mapstruct *map, char **layout, int *ix, int *iy, int xsize, int ysize)
Definition: special.cpp:154
pick_random_object
object * pick_random_object(mapstruct *style)
Definition: style.cpp:289
diamondslots.y
y
Definition: diamondslots.py:16
CFweardisguise.option
option
Definition: CFweardisguise.py:16
make_snake_layout
char ** make_snake_layout(int xsize, int ysize, int _unused_options, int _unused_layers)
Definition: snake.cpp:36
doorify_layout
void doorify_layout(char **maze, RMParms *RP)
Definition: random_map.cpp:697
make_map_floor
mapstruct * make_map_floor(char **layout, char *floorstyle, RMParms *RP)
Definition: floor.cpp:75
dump_layout
void dump_layout(char **layout, RMParms *RP)
Definition: random_map.cpp:43
load_dir
int load_dir(const char *dir, char ***namelist, int skip_dirs)
Definition: style.cpp:74
wall_blocked
int wall_blocked(mapstruct *m, int x, int y)
Definition: treasure.cpp:62
place_fountain_with_specials
void place_fountain_with_specials(mapstruct *map)
Definition: special.cpp:217
put_decor
void put_decor(mapstruct *map, char **maze, char *decorstyle, int decor_option, RMParms *RP)
Definition: decor.cpp:65
bottom_right_centered_onion
void bottom_right_centered_onion(char **maze, int xsize, int ysize, int option, int layers)
Definition: room_gen_onion.cpp:471
place_chest
object * place_chest(int treasureoptions, int x, int y, mapstruct *map, int n_treasures, RMParms *RP)
Definition: treasure.cpp:220
surround_flag4
int surround_flag4(mapstruct *map, int i, int j, RMParms *RP)
Definition: wall.cpp:152
make_doors
void make_doors(char **maze, float *xlocations, float *ylocations, int layers, int options)
Definition: room_gen_onion.cpp:345
surround_flag3
int surround_flag3(mapstruct *map, int i, int j, RMParms *RP)
Definition: wall.cpp:114
find_monster_in_room
object * find_monster_in_room(mapstruct *map, int x, int y, RMParms *RP)
Definition: treasure.cpp:543
place_special_exit
void place_special_exit(mapstruct *map, int hole_type, const RMParms *RP)
Definition: special.cpp:277
load_style_map
mapstruct * load_style_map(char *style_name)
Definition: style.cpp:131
find_top_left_corner
void find_top_left_corner(char **maze, int *cx, int *cy)
Definition: square_spiral.cpp:53
find_enclosed_spot
void find_enclosed_spot(mapstruct *map, int *cx, int *cy, RMParms *RP)
Definition: treasure.cpp:691
write_map_parameters_to_string
StringBuffer * write_map_parameters_to_string(const RMParms *RP)
Definition: random_map.cpp:749