Struct bwapi::unit::Unit [−][src]
pub struct Unit(_);
Methods
impl Unit
[src]
impl Unit
pub fn id(&self) -> i32
[src]
pub fn id(&self) -> i32
pub fn get_type(&self) -> UnitType
[src]
pub fn get_type(&self) -> UnitType
pub fn exists(&self) -> bool
[src]
pub fn exists(&self) -> bool
pub fn is_idle(&self) -> bool
[src]
pub fn is_idle(&self) -> bool
pub fn is_moving(&self) -> bool
[src]
pub fn is_moving(&self) -> bool
pub fn is_carrying_minerals(&self) -> bool
[src]
pub fn is_carrying_minerals(&self) -> bool
pub fn is_carrying_gas(&self) -> bool
[src]
pub fn is_carrying_gas(&self) -> bool
pub fn return_cargo(&self, shift_queue_command: bool) -> bool
[src]
pub fn return_cargo(&self, shift_queue_command: bool) -> bool
pub fn loaded_units(&self) -> Box<Iterator<Item = Unit>>
[src]
pub fn loaded_units(&self) -> Box<Iterator<Item = Unit>>
pub fn distance_to<T>(&self, t: &T) -> i32 where
T: HasPosition,
[src]
pub fn distance_to<T>(&self, t: &T) -> i32 where
T: HasPosition,
pub fn right_click<T>(&self, target: &T, shift_queue_command: bool) -> bool where
T: RightClickable,
[src]
pub fn right_click<T>(&self, target: &T, shift_queue_command: bool) -> bool where
T: RightClickable,
pub fn train(&self, unit_type: UnitType) -> bool
[src]
pub fn train(&self, unit_type: UnitType) -> bool
Trait Implementations
impl HasPosition for Unit
[src]
impl HasPosition for Unit
impl RightClickable for Unit
[src]
impl RightClickable for Unit
fn dispatch_right_click(&self, source: &Unit, shift_queue_command: bool) -> bool
[src]
fn dispatch_right_click(&self, source: &Unit, shift_queue_command: bool) -> bool
impl FromRaw for Unit
[src]
impl FromRaw for Unit