|
Crossfire Server, Branch 1.12
R12190
|
door-related functions. More...

Go to the source code of this file.
Functions | |
| void | put_doors (mapstruct *the_map, char **maze, const char *doorstyle, RMParms *RP) |
| Add doors to a map. | |
| int | surround_check2 (char **layout, int i, int j, int Xsize, int Ysize) |
| Serch for doors or walls around a spot. | |
door-related functions.
Definition in file door.c.
Add doors to a map.
| the_map | map we're adding doors to. |
| maze | maze layout. |
| doorstyle | door style to be. If "none", won't do anything. If NULL, will choose one randomly. |
| RP | random map parameters. |
Definition at line 80 of file door.c.
References arch_to_object(), copy_object(), find_style(), insert_ob_in_map(), mapdef::path, pick_random_object(), snprintf(), surround_check2(), RMParms::Xsize, and RMParms::Ysize.
Referenced by generate_random_map().


| int surround_check2 | ( | char ** | layout, |
| int | i, | ||
| int | j, | ||
| int | Xsize, | ||
| int | Ysize | ||
| ) |
Serch for doors or walls around a spot.
| layout | maze. |
| i | |
| j | coordinates to check. |
| Xsize | |
| Ysize | maze size. |
Definition at line 55 of file door.c.
Referenced by put_doors().

1.7.6.1