Go to the documentation of this file.
27 #define NR_DECOR_OPTIONS 1
69 decor_map =
find_style(
"/styles/decorstyles", decorstyle, -1);
70 if (decor_map == NULL) {
75 if (decor_option == 0) {
79 assert(decor_option != 0);
81 switch (decor_option) {
85 object *new_decor_object;
87 while (failures < 100 && number_to_place > 0) {
116 for (i = 1; i < RP->
Xsize-1; i++)
117 for (j = 1; j < RP->
Ysize-1; j++) {
118 if (maze[i][j] == 0) {
119 object *new_decor_object, *this_object;
void object_copy(const object *src_ob, object *dest_ob)
mapstruct * find_style(const char *dirname, const char *stylename, int difficulty)
void put_decor(mapstruct *map, char **maze, char *decorstyle, int decor_option, RMParms *RP)
int obj_count_in_map(mapstruct *map, int x, int y)
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
#define FOR_MAP_PREPARE(map_, mx_, my_, it_)
object * pick_random_object(mapstruct *style)
object * arch_to_object(archetype *at)