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

Function is_ice

src/dbridge.c:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85boolean
86is_ice(coordxy x, coordxy y)
87{
88 schar ltyp;
89
90 if (!isok(x, y))
91 return FALSE;
92 ltyp = levl[x][y].typ;
93 if (ltyp == ICE || (ltyp == DRAWBRIDGE_UP
94 && (levl[x][y].drawbridgemask & DB_UNDER) == DB_ICE))
95 return TRUE;
96 return FALSE;
97}
98
99boolean
100is_moat(coordxy x, coordxy y)

Callers 15

dositFunction · 0.85
wizterrainwishFunction · 0.85
slippery_ice_fumblingFunction · 0.85
spoteffectsFunction · 0.85
slip_or_tripFunction · 0.85
timer_sanity_checkFunction · 0.85
adj_pit_checksFunction · 0.85
bury_an_objFunction · 0.85
wipe_engr_atFunction · 0.85
read_engr_atFunction · 0.85
doengrave_ctx_initFunction · 0.85
engraveFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected