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

Function is_moat

src/dbridge.c:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99boolean
100is_moat(coordxy x, coordxy y)
101{
102 schar ltyp;
103
104 if (!isok(x, y))
105 return FALSE;
106 ltyp = levl[x][y].typ;
107 if (!Is_juiblex_level(&u.uz)
108 && (ltyp == MOAT
109 || (ltyp == DRAWBRIDGE_UP
110 && (levl[x][y].drawbridgemask & DB_UNDER) == DB_MOAT)))
111 return TRUE;
112 return FALSE;
113}
114
115schar
116db_under_typ(int mask)

Callers 5

vision.cFile · 0.85
fillholetypFunction · 0.85
hurtle_stepFunction · 0.85
zap_over_floorFunction · 0.85
is_poolFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected