Whether there is a unit with this ID within the vision range.
(&self, id: UnitID)
| 580 | |
| 581 | /// Whether there is a unit with this ID within the vision range. |
| 582 | pub fn can_sense_unit(&self, id: UnitID) -> bool { |
| 583 | self.unit(id).is_ok() |
| 584 | } |
| 585 | |
| 586 | /// Sense units near the location within the given radius, inclusive, in |
| 587 | /// distance squared. The units are within the vision range. |