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

Function accessible

src/monmove.c:2187–2194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2185}
2186
2187boolean
2188accessible(coordxy x, coordxy y)
2189{
2190 /* use underlying terrain in front of closed drawbridge */
2191 int levtyp = SURFACE_AT(x, y);
2192
2193 return (boolean) (ACCESSIBLE(levtyp) && !closed_door(x, y));
2194}
2195
2196/* decide where the monster thinks you are standing */
2197void

Callers 14

done_object_cleanupFunction · 0.85
landing_spotFunction · 0.85
goodposFunction · 0.85
tiphatFunction · 0.85
domove_fight_emptyFunction · 0.85
md_stopFunction · 0.85
sanity_check_single_monFunction · 0.85
mondiedFunction · 0.85
xkilledFunction · 0.85
set_apparxyFunction · 0.85
undesirable_dispFunction · 0.85
hero_behind_chokepointFunction · 0.85

Calls 1

closed_doorFunction · 0.85

Tested by

no test coverage detected