Struct flattiverse_connector::unit::MissionTarget
source · pub struct MissionTarget { /* private fields */ }
Implementations
sourceimpl MissionTarget
impl MissionTarget
pub fn from_reader(
connector: &Arc<Connector>,
universe_group: &UniverseGroup,
packet: &Packet,
reader: &mut dyn BinaryReader
) -> Result<MissionTarget, Error>
sourcepub fn sequence_number(&self) -> u16
pub fn sequence_number(&self) -> u16
The sequence number of this target
sourcepub fn domination_radius(&self) -> f32
pub fn domination_radius(&self) -> f32
The radius in which the presence counts for domination
sourcepub fn domination_weight(&self) -> f32
pub fn domination_weight(&self) -> f32
When this number reaches 0, the MissionTarget is not dominated by a team anymore. When this number reaches 1 the MissionTarget is fully dominated by the MissionTarget- Team. Each x (currently 350) ticks a MissionTarget is contiguous fully dominated it scores for its Team
sourcepub fn domination_ticks(&self) -> u16
pub fn domination_ticks(&self) -> u16
When this values reaches a certain value (currently 350) its Team scores and the value is reset
Trait Implementations
sourceimpl Unit for MissionTarget
impl Unit for MissionTarget
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 MissionTarget
impl Send for MissionTarget
impl Sync for MissionTarget
impl Unpin for MissionTarget
impl !UnwindSafe for MissionTarget
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