is of `lev' inside the Wizard's tower? */
| 1920 | |
| 1921 | /* is <x,y> of `lev' inside the Wizard's tower? */ |
| 1922 | boolean |
| 1923 | In_W_tower(coordxy x, coordxy y, d_level *lev) |
| 1924 | { |
| 1925 | if (!On_W_tower_level(lev)) |
| 1926 | return FALSE; |
| 1927 | if (!svd.dndest.nlx) { |
| 1928 | impossible("No boundary for Wizard's Tower?"); |
| 1929 | return FALSE; |
| 1930 | } |
| 1931 | /* |
| 1932 | * Both of the exclusion regions for arriving via level teleport |
| 1933 | * (from above or below) define the tower's boundary. |
| 1934 | * assert( svu.updest.nIJ == svd.dndest.nIJ for I={l|h},J={x|y} ); |
| 1935 | */ |
| 1936 | return (boolean) within_bounded_area(x, y, svd.dndest.nlx, svd.dndest.nly, |
| 1937 | svd.dndest.nhx, svd.dndest.nhy); |
| 1938 | } |
| 1939 | |
| 1940 | /* are you in one of the Hell levels? */ |
| 1941 | boolean |
no test coverage detected