Struct flattiverse_connector::unit::StormWhirl
source · pub struct StormWhirl { /* private fields */ }
Implementations
sourceimpl StormWhirl
impl StormWhirl
pub fn from_reader(
connector: &Arc<Connector>,
universe_group: &UniverseGroup,
packet: &Packet,
reader: &mut dyn BinaryReader
) -> Result<StormWhirl, Error>
sourcepub fn time(&self) -> u8
pub fn time(&self) -> u8
Remaining time for this StormWhirl to be active
pub fn hull_damage(&self) -> f32
pub fn shield_damage(&self) -> f32
pub fn energy_damage(&self) -> f32
Trait Implementations
sourceimpl Unit for StormWhirl
impl Unit for StormWhirl
fn name(&self) -> &str
fn position(&self) -> &Vector
fn movement(&self) -> &Vector
fn radius(&self) -> f32
fn gravity(&self) -> f32
fn team(&self) -> &Weak<Team>
fn is_solid(&self) -> bool
fn is_masking(&self) -> bool
fn is_visible(&self) -> bool
fn is_orbiting(&self) -> bool
fn orbiting_center(&self) -> &Option<Vector>
fn orbiting_states(&self) -> &Option<Vec<OrbitingState>>
fn mobility(&self) -> Mobility
fn connector(&self) -> &Weak<Connector>
fn kind(&self) -> UnitKind
Auto Trait Implementations
impl !RefUnwindSafe for StormWhirl
impl Send for StormWhirl
impl Sync for StormWhirl
impl Unpin for StormWhirl
impl !UnwindSafe for StormWhirl
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