Crossfire Server, Branches 1.12
R18729
|
Go to the source code of this file.
Functions | |
void | dump_layout (char **layout, int Xsize, int Ysize) |
char ** | gen_corridor_rooms (int, int, int) |
int | main () |
char ** | make_snake_layout (int xsize, int ysize) |
char ** | make_square_spiral_layout (int xsize, int ysize) |
char ** | map_gen_spiral (int, int, int) |
char ** | roguelike_layout_gen (int xsize, int ysize, int options) |
void dump_layout | ( | char ** | layout, |
int | Xsize, | ||
int | Ysize | ||
) |
char** gen_corridor_rooms | ( | int | , |
int | , | ||
int | |||
) |
int main | ( | void | ) |
Definition at line 26 of file test.c.
References dump_layout(), expand2x(), and roguelike_layout_gen().
char** make_snake_layout | ( | int | xsize, |
int | ysize | ||
) |
char** make_square_spiral_layout | ( | int | xsize, |
int | ysize | ||
) |
Generates a square-spiral layout.
xsize | |
ysize | size of the layout. |
Definition at line 90 of file square_spiral.c.
References find_top_left_corner(), make_wall(), map_gen_onion(), OPT_CENTERED, and OPT_NO_DOORS.
char** map_gen_spiral | ( | int | xsize, |
int | ysize, | ||
int | option | ||
) |
Generates a spiral layout.
xsize | |
ysize | layout size. |
option | combination of SPIRAL_xxx values. |
Definition at line 68 of file room_gen_spiral.c.
References FINE_SPIRAL, FIT_SPIRAL, MAX_FINE, MAX_SPIRAL_OPT, MIN, and REGULAR_SPIRAL.
Referenced by layoutgen().
char** roguelike_layout_gen | ( | int | xsize, |
int | ysize, | ||
int | options | ||
) |
Actually make the rogue layout. We work by a reduction process: first we make everything a wall, then we remove areas to make rooms
xsize | |
ysize | wanted layout size. |
options | 2 to have circular rooms, 1 for rectanglar ones, another value for random choice. |
Definition at line 69 of file rogue_layout.c.
References roguelike_link_rooms(), roguelike_make_rooms(), roguelike_place_room(), surround_check(), Room::x, and Room::y.
Referenced by layoutgen(), and main().