All the units within the vision range, in no particular order. Does not include units in space.
(&self)
| 491 | /// All the units within the vision range, in no particular order. |
| 492 | /// Does not include units in space. |
| 493 | pub fn units(&self) -> Vec<Unit> { |
| 494 | self.my_planet().units.values().map(|u| u.clone()).collect() |
| 495 | } |
| 496 | |
| 497 | /// All the units within the vision range, by ID. |
| 498 | /// Does not include units in space. |