Struct rust_sc2::game_data::Weapon[][src]

pub struct Weapon {
    pub target: TargetType,
    pub damage: u32,
    pub damage_bonus: Vec<(Attribute, u32)>,
    pub attacks: u32,
    pub range: f32,
    pub speed: f32,
}

Weapon’s characteristic.

Fields

target: TargetType

Possible targets.

damage: u32

Usual damage.

damage_bonus: Vec<(Attribute, u32)>

Addidional damage vs units with specific attribute.

attacks: u32

Number of attacks per use.

range: f32

Maximum range.

speed: f32

Cooldown (in seconds * game speed).

Trait Implementations

impl Clone for Weapon[src]

Auto Trait Implementations

impl RefUnwindSafe for Weapon

impl Send for Weapon

impl Sync for Weapon

impl Unpin for Weapon

impl UnwindSafe for Weapon

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,