MCPcopy Index your code
hub / github.com/NetHack/NetHack / occupied

Function occupied

src/mklev.c:1805–1811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1803}
1804
1805boolean
1806occupied(coordxy x, coordxy y)
1807{
1808 return (boolean) (t_at(x, y) || IS_FURNITURE(levl[x][y].typ)
1809 || is_lava(x, y) || is_pool(x, y)
1810 || invocation_pos(x, y));
1811}
1812
1813/* generate a corpse and some items on top of a trap */
1814staticfn void

Callers 7

fill_zooFunction · 0.85
somexyspaceFunction · 0.85
fill_ordinary_roomFunction · 0.85
mktrapFunction · 0.85
find_okay_roomposFunction · 0.85
bad_locationFunction · 0.85

Calls 4

t_atFunction · 0.85
is_lavaFunction · 0.85
is_poolFunction · 0.85
invocation_posFunction · 0.85

Tested by

no test coverage detected