Struct flattiverse_connector::unit::ControllableInfo
source · pub struct ControllableInfo { /* private fields */ }
Implementations
sourceimpl ControllableInfo
impl ControllableInfo
pub fn from_packet(
packet: &Packet,
player: Weak<Player>
) -> Result<ControllableInfo, Error>
pub fn new(
kind: UnitKind,
packet: &Packet,
player: Weak<Player>
) -> Result<ControllableInfo, Error>
pub fn level(&self) -> i32
pub fn active(&self) -> bool
pub fn alive(&self) -> bool
sourcepub fn building(&self) -> bool
pub fn building(&self) -> bool
Whether this ControllableInfo is building another ControllableInfo
sourcepub fn built(&self) -> bool
pub fn built(&self) -> bool
Whether this ControllableInfo is currently built by another ControllableInfo
sourcepub fn build_target(&self) -> Weak<ControllableInfo>
pub fn build_target(&self) -> Weak<ControllableInfo>
The ControllableInfo currently built by this ControllableInfo
sourcepub fn built_by(&self) -> Weak<ControllableInfo>
pub fn built_by(&self) -> Weak<ControllableInfo>
The ControllableInfo currently building this ControllableInfo
pub fn id(&self) -> u8
pub fn revision(&self) -> i64
pub fn class(&self) -> &str
pub fn efficiency_tactical(&self) -> f32
pub fn efficiency_economical(&self) -> f32
pub fn hull_max(&self) -> f32
pub fn hull_armor(&self) -> f32
pub fn shield_max(&self) -> f32
pub fn shield_armor(&self) -> f32
pub fn radius(&self) -> f32
pub fn cargo_slots(&self) -> u8
pub fn crystal_slots(&self) -> u8
pub fn has_tractor_beam(&self) -> bool
pub fn scores(&self) -> &Arc<Scores>
pub fn has_pending_shutdown(&self) -> bool
pub fn has_power_up_haste(&self) -> bool
pub fn has_power_up_double_damage(&self) -> bool
pub fn has_power_up_quad_damage(&self) -> bool
pub fn has_power_up_cloak(&self) -> bool
pub fn build_progress(&self) -> f32
pub fn hull(&self) -> f32
pub fn shield(&self) -> f32
pub fn kind(&self) -> UnitKind
pub fn crystals(&self) -> RwLockReadGuard<'_, Vec<Arc<CrystalCargoItem>>>
pub fn cargo_items(&self) -> RwLockReadGuard<'_, Vec<AnyCargoItem>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ControllableInfo
impl Send for ControllableInfo
impl Sync for ControllableInfo
impl Unpin for ControllableInfo
impl !UnwindSafe for ControllableInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more