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: Units
All the units including owned, enemies and neutral.
my: PlayerUnits
Your’s only units.
enemy: PlayerUnits
Opponent’s units, on current step.
mineral_fields: Units
All mineral fields on the map.
vespene_geysers: Units
All vespene geysers on the map.
resources: Units
All resources (both minerals and geysers) on the map.
destructables: Units
Destructable rocks and other trash.
watchtowers: Units
Watchtowers reveal area around them if there’re any ground units near.
inhibitor_zones: Units
Inhubitor 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