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

Function closed_door

src/monmove.c:2180–2185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2178}
2179
2180boolean
2181closed_door(coordxy x, coordxy y)
2182{
2183 return (boolean) (IS_DOOR(levl[x][y].typ)
2184 && (levl[x][y].doormask & (D_LOCKED | D_CLOSED)));
2185}
2186
2187boolean
2188accessible(coordxy x, coordxy y)

Callers 15

findoneFunction · 0.85
goodposFunction · 0.85
moverock_coreFunction · 0.85
still_chewingFunction · 0.85
test_moveFunction · 0.85
findtravelpathFunction · 0.85
switch_terrainFunction · 0.85
lookaroundFunction · 0.85
engulf_targetFunction · 0.85
dig_typFunction · 0.85
digFunction · 0.85
watch_digFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_moveFunction · 0.68