public enum UpgradeType extends Enum<UpgradeType>
Unit.upgrade(bwapi.UpgradeType)
.Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
int |
gasPrice() |
int |
gasPrice(int level)
Returns the vespene gas price for the first upgrade.
|
int |
gasPriceFactor()
Returns the amount that the vespene gas price increases for each additional upgrade.
|
Race |
getRace()
Retrieves the race the upgrade is for.
|
int |
maxRepeats()
Returns the maximum number of times the upgrade can be researched.
|
int |
mineralPrice() |
int |
mineralPrice(int level)
Returns the mineral price for the upgrade.
|
int |
mineralPriceFactor()
The amount that the mineral price increases for each additional upgrade.
|
int |
upgradeTime() |
int |
upgradeTime(int level)
Returns the number of frames needed to research the first upgrade.
|
int |
upgradeTimeFactor()
Returns the number of frames that the upgrade time increases for each additional upgrade.
|
static UpgradeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpgradeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
UnitType |
whatsRequired() |
UnitType |
whatsRequired(int level)
Returns the type of unit that is required for the upgrade.
|
UnitType |
whatUpgrades()
Returns the type of unit that researches the upgrade.
|
List<UnitType> |
whatUses()
Returns the set of units that are affected by this upgrade.
|
public static final UpgradeType Terran_Infantry_Armor
public static final UpgradeType Terran_Vehicle_Plating
public static final UpgradeType Terran_Ship_Plating
public static final UpgradeType Zerg_Carapace
public static final UpgradeType Zerg_Flyer_Carapace
public static final UpgradeType Protoss_Ground_Armor
public static final UpgradeType Protoss_Air_Armor
public static final UpgradeType Terran_Infantry_Weapons
public static final UpgradeType Terran_Vehicle_Weapons
public static final UpgradeType Terran_Ship_Weapons
public static final UpgradeType Zerg_Melee_Attacks
public static final UpgradeType Zerg_Missile_Attacks
public static final UpgradeType Zerg_Flyer_Attacks
public static final UpgradeType Protoss_Ground_Weapons
public static final UpgradeType Protoss_Air_Weapons
public static final UpgradeType Protoss_Plasma_Shields
public static final UpgradeType U_238_Shells
public static final UpgradeType Ion_Thrusters
public static final UpgradeType Titan_Reactor
public static final UpgradeType Ocular_Implants
public static final UpgradeType Moebius_Reactor
public static final UpgradeType Apollo_Reactor
public static final UpgradeType Colossus_Reactor
public static final UpgradeType Ventral_Sacs
public static final UpgradeType Antennae
public static final UpgradeType Pneumatized_Carapace
public static final UpgradeType Metabolic_Boost
public static final UpgradeType Adrenal_Glands
public static final UpgradeType Muscular_Augments
public static final UpgradeType Grooved_Spines
public static final UpgradeType Gamete_Meiosis
public static final UpgradeType Metasynaptic_Node
public static final UpgradeType Singularity_Charge
public static final UpgradeType Leg_Enhancements
public static final UpgradeType Scarab_Damage
public static final UpgradeType Reaver_Capacity
public static final UpgradeType Gravitic_Drive
public static final UpgradeType Sensor_Array
public static final UpgradeType Gravitic_Boosters
public static final UpgradeType Khaydarin_Amulet
public static final UpgradeType Apial_Sensors
public static final UpgradeType Gravitic_Thrusters
public static final UpgradeType Carrier_Capacity
public static final UpgradeType Khaydarin_Core
public static final UpgradeType Argus_Jewel
public static final UpgradeType Argus_Talisman
public static final UpgradeType Caduceus_Reactor
public static final UpgradeType Chitinous_Plating
public static final UpgradeType Anabolic_Synthesis
public static final UpgradeType Charon_Boosters
public static final UpgradeType Upgrade_60
public static final UpgradeType None
public static final UpgradeType Unknown
public static UpgradeType[] values()
for (UpgradeType c : UpgradeType.values()) System.out.println(c);
public static UpgradeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Race getRace()
Race.Terran
.Race
that this upgrade belongs to.public int mineralPrice()
public int mineralPrice(int level)
level
- The next upgrade level.
Upgrades start at level 0.
public int mineralPriceFactor()
public int gasPrice()
public int gasPrice(int level)
level
- The next upgrade level.
Upgrades start at level 0.
public int gasPriceFactor()
public int upgradeTime()
public int upgradeTime(int level)
level
- The next upgrade level. Upgrades start at level 0.public int upgradeTimeFactor()
public UnitType whatUpgrades()
UnitType
that is used to upgrade this type.public List<UnitType> whatUses()
public int maxRepeats()
public UnitType whatsRequired()
public UnitType whatsRequired(int level)
level
- The next upgrade level. Upgrades start at level 0.UnitType
required to obtain this upgrade.Copyright © 2022. All rights reserved.