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

Function is_db_wall

src/dbridge.c:169–173  ·  view source on GitHub ↗

* Use is_db_wall where you want to verify that a * drawbridge "wall" is UP in the location x, y * (instead of UP or DOWN, as with is_drawbridge_wall). */

Source from the content-addressed store, hash-verified

167 * (instead of UP or DOWN, as with is_drawbridge_wall).
168 */
169boolean
170is_db_wall(coordxy x, coordxy y)
171{
172 return (boolean) (levl[x][y].typ == DBWALL);
173}
174
175/*
176 * Return true with x,y pointing to the drawbridge if x,y initially indicate

Callers 10

test_moveFunction · 0.85
digFunction · 0.85
doopen_indirFunction · 0.85
docloseFunction · 0.85
zap_updownFunction · 0.85
zap_mapFunction · 0.85
e_survives_atFunction · 0.85
e_missedFunction · 0.85
e_jumpsFunction · 0.85
do_entityFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_moveFunction · 0.68