1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
69 | /* treasure.c */ |
69 | /* treasure.c */ |
70 | extern int wall_blocked (maptile *m, int x, int y); |
70 | extern int wall_blocked (maptile *m, int x, int y); |
71 | extern void place_treasure (maptile *map, char **layout, char *treasure_style, int treasureoptions, random_map_params *RP); |
71 | extern void place_treasure (maptile *map, char **layout, char *treasure_style, int treasureoptions, random_map_params *RP); |
72 | extern object *place_chest (int treasureoptions, int x, int y, maptile *map, maptile *style_map, int n_treasures, random_map_params *RP); |
72 | extern object *place_chest (int treasureoptions, int x, int y, maptile *map, maptile *style_map, int n_treasures, random_map_params *RP); |
73 | extern object *find_closest_monster (maptile *map, int x, int y, random_map_params *RP); |
73 | extern object *find_closest_monster (maptile *map, int x, int y, random_map_params *RP); |
74 | extern int keyplace (maptile *map, int x, int y, char *keycode, int door_flag, int n_keys, random_map_params *RP); |
|
|
75 | extern object *find_monster_in_room_recursive (char **layout, maptile *map, int x, int y, random_map_params *RP); |
74 | extern object *find_monster_in_room_recursive (char **layout, maptile *map, int x, int y, random_map_params *RP); |
76 | extern object *find_monster_in_room (maptile *map, int x, int y, random_map_params *RP); |
75 | extern object *find_monster_in_room (maptile *map, int x, int y, random_map_params *RP); |
77 | extern void find_spot_in_room_recursive (char **layout, int x, int y, random_map_params *RP); |
76 | extern void find_spot_in_room_recursive (char **layout, int x, int y, random_map_params *RP); |
78 | extern void find_spot_in_room (maptile *map, int x, int y, int *kx, int *ky, random_map_params *RP); |
77 | extern void find_spot_in_room (maptile *map, int x, int y, int *kx, int *ky, random_map_params *RP); |
79 | extern void find_enclosed_spot (maptile *map, int *cx, int *cy, random_map_params *RP); |
78 | extern void find_enclosed_spot (maptile *map, int *cx, int *cy, random_map_params *RP); |