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

Function is_pool

src/dbridge.c:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45boolean
46is_pool(coordxy x, coordxy y)
47{
48 schar ltyp;
49
50 if (!isok(x, y))
51 return FALSE;
52 ltyp = levl[x][y].typ;
53 /* The ltyp == MOAT is not redundant with is_moat, because the
54 * Juiblex level does not have moats, although it has MOATs. There
55 * is probably a better way to express this. */
56 if (ltyp == POOL || ltyp == MOAT || ltyp == WATER || is_moat(x, y))
57 return TRUE;
58 return FALSE;
59}
60
61boolean
62is_lava(coordxy x, coordxy y)

Callers 15

regen_hpFunction · 0.85
dositFunction · 0.85
dodipFunction · 0.85
Boots_offFunction · 0.85
attack_checksFunction · 0.85
mhitm_ad_wrapFunction · 0.85
m_is_steadfastFunction · 0.85
dismount_steedFunction · 0.85
goodposFunction · 0.85
vision_recalcFunction · 0.85
drag_ballFunction · 0.85
drop_ballFunction · 0.85

Calls 2

isokFunction · 0.85
is_moatFunction · 0.85

Tested by 1

test_moveFunction · 0.68