46 return (item ==
'\0' || item ==
'<' || item ==
'>') ? 1 : 0;
70 for (dx = -1; dx < 2; dx++) {
71 for (dy = -1; dy < 2; dy++) {
73 put_floor(map, layout, x+dx, y+dy, floor_arch);
90 char styledirname[256];
91 char stylefilepath[256];
101 snprintf(styledirname,
sizeof(styledirname),
"%s",
"/styles/floorstyles");
102 snprintf(stylefilepath,
sizeof(stylefilepath),
"%s/%s", styledirname, floorstyle);
103 style_map =
find_style(styledirname, floorstyle, -1);
104 if (style_map == NULL)
108 for (x = 0; x < RP->
Xsize; x++) {
109 for (y = 0; y < RP->
Ysize; y++) {
110 if (
GET_MAP_OB(newMap, x, y) == NULL && layout[x][y] ==
'\0')
120 for (x = 0; x < RP->
Xsize; x++)
121 for (y = 0; y < RP->
Ysize; y++) {
mapstruct * make_map_floor(char **layout, char *floorstyle, RMParms *RP)
static int can_propagate(char item)
mapstruct * get_empty_map(int sizex, int sizey)
object * pick_random_object(mapstruct *style)
static void put_floor(mapstruct *map, char **layout, int x, int y, object *floor_arch)
object * insert_ob_in_map(object *op, mapstruct *m, object *originator, int flag)
int snprintf(char *dest, int max, const char *format,...)
#define GET_MAP_OB(M, X, Y)
mapstruct * find_style(const char *dirname, const char *stylename, int difficulty)
object * arch_to_object(archetype *at)