| 3318 | } |
| 3319 | |
| 3320 | staticfn boolean |
| 3321 | get_valid_polearm_position(coordxy x, coordxy y) |
| 3322 | { |
| 3323 | int glyph; |
| 3324 | |
| 3325 | glyph = glyph_at(x, y); |
| 3326 | |
| 3327 | return (isok(x, y) && distu(x, y) >= gp.polearm_range_min |
| 3328 | && distu(x, y) <= gp.polearm_range_max |
| 3329 | && (cansee(x, y) || (couldsee(x, y) |
| 3330 | && glyph_is_poleable(glyph)))); |
| 3331 | } |
| 3332 | |
| 3333 | staticfn void |
| 3334 | display_polearm_positions(boolean on_off) |
no test coverage detected