| 1 |
/* |
| 2 |
* This file is part of Deliantra, the Roguelike Realtime MMORPG. |
| 3 |
* |
| 4 |
* Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
| 5 |
* Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
| 6 |
* Copyright (©) 1992,2007 Frank Tore Johansen |
| 7 |
* |
| 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 |
| 10 |
* the Free Software Foundation, either version 3 of the License, or |
| 11 |
* (at your option) any later version. |
| 12 |
* |
| 13 |
* This program is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
* GNU General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU General Public License |
| 19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
* |
| 21 |
* The authors can be reached via e-mail to <support@deliantra.net> |
| 22 |
*/ |
| 23 |
|
| 24 |
/* random_map.c */ |
| 25 |
extern void dump_layout (Layout layout); |
| 26 |
extern int make_wall (char **maze, int x, int y, int dir); |
| 27 |
extern void write_map_parameters_to_string (char *buf, random_map_params *RP); |
| 28 |
extern void write_parameters_to_string (char *buf, int xsize_n, int ysize_n, const char *wallstyle_n, const char *floorstyle_n, const char *monsterstyle_n, const char *treasurestyle_n, const char *layoutstyle_n, const char *decorstyle_n, const char *doorstyle_n, const char *exitstyle_n, const char *final_map_n, const char *exit_on_final_map_n, const 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); |
| 29 |
/* room_gen_onion.c */ |
| 30 |
extern void map_gen_onion (Layout maze, int option, int layers); |
| 31 |
/* room_gen_spiral.c */ |
| 32 |
extern void map_gen_spiral (Layout maze, int option); |
| 33 |
extern void connect_spirals (int xsize, int ysize, int sym, char **layout); |
| 34 |
/* maze_gen.c */ |
| 35 |
extern void maze_gen (Layout maze, int option); |
| 36 |
/* wall.c */ |
| 37 |
extern int surround_flag (char **layout, int i, int j, random_map_params *RP); |
| 38 |
extern int surround_flag2 (char **layout, int i, int j, random_map_params *RP); |
| 39 |
extern int surround_flag3 (maptile *map, sint16 i, sint16 j, random_map_params *RP); |
| 40 |
extern void make_map_walls (maptile *map, char **layout, char *w_style, random_map_params *RP); |
| 41 |
extern object *retrofit_joined_wall (maptile *the_map, int i, int j, int insert_flag, random_map_params *RP); |
| 42 |
/* monster.c */ |
| 43 |
extern void place_monsters (maptile *map, char *monsterstyle, int difficulty, random_map_params *RP); |
| 44 |
/* door.c */ |
| 45 |
extern void put_doors (maptile *the_map, char **maze, const char *doorstyle, random_map_params *RP); |
| 46 |
/* decor.c */ |
| 47 |
extern void put_decor (maptile *map, char **maze, char *decorstyle, int decor_option, random_map_params *RP); |
| 48 |
/* exit.c */ |
| 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 |
/* treasure.c */ |
| 52 |
extern int wall_blocked (maptile *m, int x, int y); |
| 53 |
extern void place_treasure (maptile *map, char **layout, char *treasure_style, int treasureoptions, random_map_params *RP); |
| 54 |
/* special.c */ |
| 55 |
extern void place_specials_in_map (maptile *map, char **layout, random_map_params *RP); |
| 56 |
/* rogue_layout.c */ |
| 57 |
extern int surround_check (char **layout, int i, int j, int Xsize, int Ysize); |
| 58 |
extern void roguelike_layout_gen (Layout maze, int options); |
| 59 |
/* snake.c */ |
| 60 |
extern void make_snake_layout (Layout maze, int options); |
| 61 |
/* square_spiral.c */ |
| 62 |
extern void make_square_spiral_layout (Layout maze, int options); |
| 63 |
/* expand2x.c */ |
| 64 |
extern void expand2x (Layout maze); |
| 65 |
|