Crossfire Server, Branch 1.12
R12190
|
Floor handling. More...
Go to the source code of this file.
Functions | |
static int | can_propagate (char item) |
Checks if the tile 'propagates' the floor. | |
mapstruct * | make_map_floor (char **layout, char *floorstyle, RMParms *RP) |
Creates the Crossfire mapstruct object from the layout, and adds the floor. | |
static void | put_floor (mapstruct *map, char **layout, int x, int y, object *floor_arch) |
Put a floor at specified location, and then to adjacent tiles if applicable. |
Floor handling.
Definition in file floor.c.
static int can_propagate | ( | char | item | ) | [static] |
Checks if the tile 'propagates' the floor.
item | tile to check. |
Definition at line 45 of file floor.c.
Referenced by put_floor().
mapstruct* make_map_floor | ( | char ** | layout, |
char * | floorstyle, | ||
RMParms * | RP | ||
) |
Creates the Crossfire mapstruct object from the layout, and adds the floor.
layout | generated layout. |
floorstyle | floor style. Can be NULL, in which case a random one is chosen. |
RP | parameters of the random map. |
Definition at line 89 of file floor.c.
References arch_to_object(), find_style(), get_empty_map(), GET_MAP_OB, insert_ob_in_map(), RMParms::multiple_floors, pick_random_object(), put_floor(), snprintf(), RMParms::Xsize, and RMParms::Ysize.
Referenced by generate_random_map().
static void put_floor | ( | mapstruct * | map, |
char ** | layout, | ||
int | x, | ||
int | y, | ||
object * | floor_arch | ||
) | [static] |
Put a floor at specified location, and then to adjacent tiles if applicable.
map | where to put the floor. |
layout | layout that was used to generate the map. |
x | |
y | coordinates. |
floor_arch | what floor to use. |
Definition at line 61 of file floor.c.
References arch_to_object(), can_propagate(), GET_MAP_OB, and insert_ob_in_map().
Referenced by make_map_floor().