| 43 | } |
| 44 | |
| 45 | boolean |
| 46 | is_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 | |
| 61 | boolean |
| 62 | is_lava(coordxy x, coordxy y) |