pub struct PlayerUnitTractorbeamInfo { /* private fields */ }
Implementations
sourceimpl PlayerUnitTractorbeamInfo
impl PlayerUnitTractorbeamInfo
pub fn for_reader(
reader: &mut dyn BinaryReader
) -> Result<PlayerUnitTractorbeamInfo, Error>
sourcepub fn direction(&self) -> f32
pub fn direction(&self) -> f32
The direction of the tractor-beam. The tractor-beam is about -15° and +15° the given direction
sourcepub fn range(&self) -> f32
pub fn range(&self) -> f32
The range of the tractor-beam. The effective range is the value + the unit radius
sourcepub fn force(&self) -> f32
pub fn force(&self) -> f32
The effective force of the tractor-beam. A positive value means the unit is pulling other units towards it. A negative value means the unit is pushing other units away from it.
sourcepub fn self_affected(&self) -> bool
pub fn self_affected(&self) -> bool
Whether the tractor-beam touched a [Mobility#Steady] or [Mobility#Still] unit. If so, the unit itself gets moved towards or away from that unit.
Auto Trait Implementations
impl RefUnwindSafe for PlayerUnitTractorbeamInfo
impl Send for PlayerUnitTractorbeamInfo
impl Sync for PlayerUnitTractorbeamInfo
impl Unpin for PlayerUnitTractorbeamInfo
impl UnwindSafe for PlayerUnitTractorbeamInfo
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