pub struct AllUnits {
pub all: Units,
pub my: PlayerUnits,
pub enemy: PlayerUnits,
pub mineral_fields: Units,
pub vespene_geysers: Units,
pub resources: Units,
pub destructables: Units,
pub watchtowers: Units,
pub inhibitor_zones: Units,
}Expand description
Structured collection of all possible units. Can be accessed through units bot’s field.
Fields§
§all: UnitsAll the units including owned, enemies and neutral.
my: PlayerUnitsYour’s only units.
enemy: PlayerUnitsOpponent’s units, on current step.
mineral_fields: UnitsAll mineral fields on the map.
vespene_geysers: UnitsAll vespene geysers on the map.
resources: UnitsAll resources (both minerals and geysers) on the map.
destructables: UnitsDestructable rocks and other trash.
watchtowers: UnitsWatchtowers reveal area around them if there’re any ground units near.
inhibitor_zones: UnitsInhubitor zones slow down movement speed of nearby units.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllUnits
impl !RefUnwindSafe for AllUnits
impl !Send for AllUnits
impl !Sync for AllUnits
impl Unpin for AllUnits
impl !UnwindSafe for AllUnits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more