MCPcopy Create free account
hub / github.com/NetHack/NetHack / dolookaround_floodfill_findroom

Function dolookaround_floodfill_findroom

src/cmd.c:1262–1272  ·  view source on GitHub ↗

selection_floofill callback to get all locations in a room */

Source from the content-addressed store, hash-verified

1260
1261/* selection_floofill callback to get all locations in a room */
1262staticfn int
1263dolookaround_floodfill_findroom(coordxy x, coordxy y)
1264{
1265 schar typ = levl[x][y].typ;
1266
1267 if (IS_STWALL(typ) || IS_DOOR(typ) || IS_TREE(typ)
1268 || IS_WATERWALL(typ) || typ == LAVAWALL || typ == IRONBARS
1269 || typ == SCORR || typ == SDOOR || typ == DRAWBRIDGE_UP)
1270 return FALSE;
1271 return TRUE;
1272}
1273
1274/* describe the room at x,y */
1275staticfn void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected