|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| void | centered_onion (char **maze, int xsize, int ysize, int option, int layers) |
| void | bottom_centered_onion (char **maze, int xsize, int ysize, int option, int layers) |
| void | bottom_right_centered_onion (char **maze, int xsize, int ysize, int option, int layers) |
| void | draw_onion (char **maze, float *xlocations, float *ylocations, int layers) |
| void | make_doors (char **maze, float *xlocations, float *ylocations, int layers, int options) |
| char ** | map_gen_onion (int xsize, int ysize, int option, int layers) |
The onion room generator.
Onion rooms are like this:
regular random
centered, linear onion bottom/right centered, nonlinear
######################### ######################### # # # # # ######## ########## # # ##################### # # # # # # # # # ###### ######## # # # # # # # # # # # # # ######## ######## # # # #### ###### # # # # # # # # # # # # # # # # # # # # # # ############ # # # # # # ########### ## # # # # # # # # # # # # # ################ # # # # # # ######### # # # # # # # # # # #################### # # # # # # # # # # # # # # ######################### #########################
Definition in file room_gen_onion.c.
| void bottom_centered_onion | ( | char ** | maze, |
| int | xsize, | ||
| int | ysize, | ||
| int | option, | ||
| int | layers | ||
| ) |
Create a bottom-centered layout.
| maze | Maze layout. |
| xsize | X size of the layout. |
| ysize | Y size of the layout. |
| option | Combination of OPT_xxx values. |
| layers | Number of layers to create. |
Definition at line 242 of file room_gen_onion.c.
| void bottom_right_centered_onion | ( | char ** | maze, |
| int | xsize, | ||
| int | ysize, | ||
| int | option, | ||
| int | layers | ||
| ) |
Create a bottom-right-centered layout.
| maze | Maze layout. |
| xsize | X size of the layout. |
| ysize | Y size of the layout. |
| option | Combination of OPT_xxx values. |
| layers | Number of layers to create. |
Definition at line 556 of file room_gen_onion.c.
| void centered_onion | ( | char ** | maze, |
| int | xsize, | ||
| int | ysize, | ||
| int | option, | ||
| int | layers | ||
| ) |
Creates a centered onion layout.
| maze | Maze layout. |
| xsize | X size of the layout. |
| ysize | Y size of the layout. |
| option | Combination of OPT_xxx values. |
| layers | Number of layers to create. |
Definition at line 151 of file room_gen_onion.c.
| void draw_onion | ( | char ** | maze, |
| float * | xlocations, | ||
| float * | ylocations, | ||
| int | layers | ||
| ) |
Draws the lines in the maze defining the onion layers.
| maze | Nap to draw to. |
| xlocations | Array of X coordinate locations. |
| ylocations | Array of Y coordinate locations. |
| layers | Number of layers. |
Definition at line 348 of file room_gen_onion.c.
| void make_doors | ( | char ** | maze, |
| float * | xlocations, | ||
| float * | ylocations, | ||
| int | layers, | ||
| int | options | ||
| ) |
Add doors to the layout.
| maze | Map to draw to. |
| xlocations | Array of X coordinate locations. |
| ylocations | Array of Y coordinate locations. |
| layers | Number of layers. |
| options | Combination of OPT_xxx values. |
Definition at line 385 of file room_gen_onion.c.
| char** map_gen_onion | ( | int | xsize, |
| int | ysize, | ||
| int | option, | ||
| int | layers | ||
| ) |
Generates an onion layout.
| xsize | X size of the layout. |
| ysize | Y size of the layout. |
| option | Combination of OPT_xxx values. |
| layers | Number of layers the onion should have. |
Definition at line 67 of file room_gen_onion.c.
1.7.4