Struct flattiverse_connector::unit::PlayerShip
source · pub struct PlayerShip { /* private fields */ }
Implementations
sourceimpl PlayerShip
impl PlayerShip
pub fn from_reader(
connector: &Arc<Connector>,
universe_group: &UniverseGroup,
packet: &Packet,
reader: &mut dyn BinaryReader
) -> Result<PlayerShip, Error>
Trait Implementations
sourceimpl PlayerUnit for PlayerShip
impl PlayerUnit for PlayerShip
fn player(&self) -> &Weak<Player>
fn controllable_info(&self) -> &Weak<ControllableInfo>
fn tractorbeam_info(&self) -> &Option<PlayerUnitTractorbeamInfo>
sourceimpl Unit for PlayerShip
impl Unit for PlayerShip
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 PlayerShip
impl Send for PlayerShip
impl Sync for PlayerShip
impl Unpin for PlayerShip
impl !UnwindSafe for PlayerShip
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