[][src]Enum bwapi_wrapper::BWAPI_UpgradeTypes_Enum_Enum

#[repr(i32)]pub enum BWAPI_UpgradeTypes_Enum_Enum {
    Terran_Infantry_Armor,
    Terran_Vehicle_Plating,
    Terran_Ship_Plating,
    Zerg_Carapace,
    Zerg_Flyer_Carapace,
    Protoss_Ground_Armor,
    Protoss_Air_Armor,
    Terran_Infantry_Weapons,
    Terran_Vehicle_Weapons,
    Terran_Ship_Weapons,
    Zerg_Melee_Attacks,
    Zerg_Missile_Attacks,
    Zerg_Flyer_Attacks,
    Protoss_Ground_Weapons,
    Protoss_Air_Weapons,
    Protoss_Plasma_Shields,
    U_238_Shells,
    Ion_Thrusters,
    Titan_Reactor,
    Ocular_Implants,
    Moebius_Reactor,
    Apollo_Reactor,
    Colossus_Reactor,
    Ventral_Sacs,
    Antennae,
    Pneumatized_Carapace,
    Metabolic_Boost,
    Adrenal_Glands,
    Muscular_Augments,
    Grooved_Spines,
    Gamete_Meiosis,
    Metasynaptic_Node,
    Singularity_Charge,
    Leg_Enhancements,
    Scarab_Damage,
    Reaver_Capacity,
    Gravitic_Drive,
    Sensor_Array,
    Gravitic_Boosters,
    Khaydarin_Amulet,
    Apial_Sensors,
    Gravitic_Thrusters,
    Carrier_Capacity,
    Khaydarin_Core,
    Argus_Jewel,
    Argus_Talisman,
    Caduceus_Reactor,
    Chitinous_Plating,
    Anabolic_Synthesis,
    Charon_Boosters,
    Upgrade_60,
    None,
    Unknown,
    MAX,
}
Enumeration of upgrade types.

Variants

Terran_Infantry_Armor
Terran_Vehicle_Plating
Terran_Ship_Plating
Zerg_Carapace
Zerg_Flyer_Carapace
Protoss_Ground_Armor
Protoss_Air_Armor
Terran_Infantry_Weapons
Terran_Vehicle_Weapons
Terran_Ship_Weapons
Zerg_Melee_Attacks
Zerg_Missile_Attacks
Zerg_Flyer_Attacks
Protoss_Ground_Weapons
Protoss_Air_Weapons
Protoss_Plasma_Shields
U_238_Shells
Ion_Thrusters
Titan_Reactor
Ocular_Implants
Moebius_Reactor
Apollo_Reactor
Colossus_Reactor
Ventral_Sacs
Antennae
Pneumatized_Carapace
Metabolic_Boost
Adrenal_Glands
Muscular_Augments
Grooved_Spines
Gamete_Meiosis
Metasynaptic_Node
Singularity_Charge
Leg_Enhancements
Scarab_Damage
Reaver_Capacity
Gravitic_Drive
Sensor_Array
Gravitic_Boosters
Khaydarin_Amulet
Apial_Sensors
Gravitic_Thrusters
Carrier_Capacity
Khaydarin_Core
Argus_Jewel
Argus_Talisman
Caduceus_Reactor
Chitinous_Plating
Anabolic_Synthesis
Charon_Boosters
Upgrade_60
None
Unknown
MAX

Implementations

impl BWAPI_UpgradeTypes_Enum_Enum[src]

pub fn what_uses(&self) -> &'static [UnitType][src]

pub fn gas_price_factor(&self) -> i32[src]

pub fn max_repeats(&self) -> i32[src]

pub fn get_race(&self) -> Race[src]

pub fn mineral_price_factor(&self) -> i32[src]

pub fn what_upgrades(&self) -> UnitType[src]

pub fn upgrade_time_factor(&self) -> i32[src]

pub fn name(&self) -> &'static str[src]

impl BWAPI_UpgradeTypes_Enum_Enum[src]

pub fn mineral_price(&self, level: i32) -> i32[src]

pub fn gas_price(&self, level: i32) -> i32[src]

pub fn upgrade_time(&self, level: i32) -> i32[src]

pub fn whats_required(&self, level: i32) -> UnitType[src]

Trait Implementations

impl Clone for BWAPI_UpgradeTypes_Enum_Enum[src]

impl Copy for BWAPI_UpgradeTypes_Enum_Enum[src]

impl Debug for BWAPI_UpgradeTypes_Enum_Enum[src]

impl Eq for BWAPI_UpgradeTypes_Enum_Enum[src]

impl FromPrimitive for BWAPI_UpgradeTypes_Enum_Enum[src]

impl Hash for BWAPI_UpgradeTypes_Enum_Enum[src]

impl PartialEq<BWAPI_UpgradeTypes_Enum_Enum> for BWAPI_UpgradeTypes_Enum_Enum[src]

impl StructuralEq for BWAPI_UpgradeTypes_Enum_Enum[src]

impl StructuralPartialEq for BWAPI_UpgradeTypes_Enum_Enum[src]

Auto Trait Implementations

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> 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<T> TypeFrom for T where
    T: FromPrimitive
[src]