public enum UnitType extends Enum<UnitType>
UnitType
is used to get information about a particular type of unit, such as its cost,
build time, weapon, hit points, abilities, etc.Unit.getType()
Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
List<TechType> |
abilities()
Retrieves the set of abilities that this unit can use, provided it is available to you in
the game.
|
int |
acceleration()
Retrieves the unit's acceleration amount.
|
WeaponType |
airWeapon()
Retrieves this unit type's weapon type used when attacking targets in the air.
|
int |
armor()
Retrieves the default amount of armor that the unit type starts with, excluding upgrades.
|
UpgradeType |
armorUpgrade()
Retrieves the upgrade type used to increase the armor of this unit type.
|
int |
buildScore()
Retrieves the amount of score points awarded for constructing this unit type.
|
List<UnitType> |
buildsWhat()
Retrieves the set of units that this unit type is capable of creating.
|
int |
buildTime()
Retrieves the default time, in frames, needed to train, morph, or build the unit.
|
boolean |
canAttack()
Checks if this unit is capable of attacking.
|
boolean |
canBuildAddon()
Checks if this unit type is capable of constructing an add-on.
|
boolean |
canMove()
Checks if this unit type is capable of movement.
|
boolean |
canProduce()
Determines if a unit can train other units.
|
TechType |
cloakingTech()
Retrieves the cloaking technology associated with certain units.
|
int |
destroyScore()
Retrieves the amount of score points awarded for killing this unit type.
|
int |
dimensionDown()
Retrieves the distance from the center of the unit type to its bottom edge.
|
int |
dimensionLeft()
Retrieves the distance from the center of the unit type to its left edge.
|
int |
dimensionRight()
Retrieves the distance from the center of the unit type to its right edge.
|
int |
dimensionUp()
Retrieves the distance from the center of the unit type to its top edge.
|
int |
gasPrice()
Retrieves the default vespene gas price of purchasing the unit.
|
Race |
getRace()
Retrieves the
Race that the unit type belongs to. |
WeaponType |
groundWeapon()
Retrieves this unit type's weapon type used when attacking targets on the ground.
|
int |
haltDistance()
Retrieves the unit's halting distance.
|
boolean |
hasPermanentCloak()
Checks if this unit type is permanently cloaked.
|
int |
height()
A macro for retrieving the height of the unit type, which is calculated using
dimensionUp + dimensionDown + 1.
|
boolean |
isAddon()
Checks if this unit is an add-on.
|
boolean |
isBeacon()
Checks if this unit type is a beacon.
|
boolean |
isBuilding()
Checks if this unit is a structure.
|
boolean |
isBurrowable()
Checks if this unit type has the capability to use the @Burrow technology when it
is researched.
|
boolean |
isCloakable()
Checks if this unit type has the capability to use a cloaking ability when it
is researched.
|
boolean |
isCritter()
Checks if this unit type is a neutral critter.
|
boolean |
isDetector()
Checks if this unit type is capable of detecting units that are cloaked or burrowed.
|
boolean |
isFlagBeacon()
Checks if this unit type is a flag beacon.
|
boolean |
isFlyer()
Checks if this unit type is a flying unit.
|
boolean |
isFlyingBuilding()
Checks if this structure has the capability to use the lift-off command.
|
boolean |
isHero()
Checks if this unit type is a hero.
|
boolean |
isInvincible()
Checks if this unit type is invincible by default.
|
boolean |
isMechanical()
Checks if this unit is mechanical.
|
boolean |
isMineralField()
Checks if this unit type is a mineral field and contains a resource amount.
|
boolean |
isNeutral()
Checks if this unit type is a neutral type, such as critters and resources.
|
boolean |
isOrganic()
Checks if this unit is an organic unit.
|
boolean |
isPowerup()
Checks if this unit type is a powerup.
|
boolean |
isRefinery()
Checks if this unit type is a refinery.
|
boolean |
isResourceContainer()
Checks if this unit type is capable of storing resources such as @minerals.
|
boolean |
isResourceDepot()
Checks if this unit type is a resource depot.
|
boolean |
isRobotic()
Checks if this unit is robotic.
|
boolean |
isSpecialBuilding()
Checks if this structure is special and cannot be obtained normally within the
game.
|
boolean |
isSpell()
Identifies if this unit type is used to complement some @abilities.
|
boolean |
isSpellcaster()
Checks if this unit type has the capacity to store energy and use it for special abilities.
|
boolean |
isSuccessorOf(UnitType type)
Checks if the current type is equal to the provided type, or a successor of the
provided type.
|
boolean |
isTwoUnitsInOneEgg()
Checks if this unit type spawns two units when being hatched from an @Egg.
|
boolean |
isWorker()
Checks if this unit type is a worker unit.
|
int |
maxAirHits()
Retrieves the maximum number of hits this unit can deal to a flying target using its
air weapon.
|
int |
maxEnergy()
Retrieves the maximum amount of energy this unit type can have by default.
|
int |
maxGroundHits()
Retrieves the maximum number of hits this unit can deal to a ground target using its
ground weapon.
|
int |
maxHitPoints()
Retrieves the default maximum amount of hit points that this unit type can have.
|
int |
maxShields()
Retrieves the default maximum amount of shield points that this unit type can have.
|
static int |
maxUnitHeight()
Retrieves the maximum unit height from the set of all units.
|
static int |
maxUnitWidth()
Retrieves the maximum unit width from the set of all units.
|
int |
mineralPrice()
Retrieves the default mineral price of purchasing the unit.
|
boolean |
producesCreep()
Checks if this structure type produces creep.
|
boolean |
producesLarva()
Checks if this unit type produces larva.
|
boolean |
regeneratesHP()
Checks if this unit type can regenerate hit points.
|
TechType |
requiredTech()
Identifies the required
TechType in order to create certain units. |
Map<UnitType,Integer> |
requiredUnits()
Retrieves the immediate technology tree requirements to make this unit type.
|
boolean |
requiresCreep()
Checks if this structure must be placed on @Zerg creep.
|
boolean |
requiresPsi()
Checks if this structure is powered by a psi field.
|
List<TechType> |
researchesWhat()
Retrieves the set of technologies that this unit type is capable of researching.
|
int |
seekRange()
Retrieves the range at which this unit type will start targeting enemy units.
|
int |
sightRange()
Retrieves the sight range of this unit type.
|
UnitSizeType |
size()
Retrieves the UnitSizeType of this unit, which is used in calculations along with weapon
damage types to determine the amount of damage that will be dealt to this type.
|
int |
spaceProvided()
Retrieves the amount of space provided by this @Bunker or @Transport for unit
transportation.
|
int |
spaceRequired()
Retrieves the amount of space required by this unit type to fit inside a @Bunker or @Transport.
|
int |
supplyProvided()
Retrieves the amount of supply that this unit type produces for its appropriate Race's
supply pool.
|
int |
supplyRequired()
Retrieves the amount of supply that this unit type will use when created.
|
int |
tileHeight()
Retrieves the height of this unit type, in tiles.
|
TilePosition |
tileSize()
Retrieves the tile size of this unit type.
|
int |
tileWidth()
Retrieves the width of this unit type, in tiles.
|
double |
topSpeed()
Retrieves this unit type's top movement speed with no upgrades.
|
int |
turnRadius()
Retrieves a unit's turning radius.
|
List<UpgradeType> |
upgrades()
Retrieves the set of upgrades that this unit can use to enhance its fighting ability.
|
List<UpgradeType> |
upgradesWhat()
Retrieves the set of upgrades that this unit type is capable of upgrading.
|
static UnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Pair<UnitType,Integer> |
whatBuilds()
Obtains the source unit type that is used to build or train this unit type, as well as the
amount of them that are required.
|
int |
width()
A macro for retrieving the width of the unit type, which is calculated using
dimensionLeft + dimensionRight + 1.
|
public static final UnitType Terran_Marine
public static final UnitType Terran_Ghost
public static final UnitType Terran_Vulture
public static final UnitType Terran_Goliath
public static final UnitType Terran_Goliath_Turret
public static final UnitType Terran_Siege_Tank_Tank_Mode
public static final UnitType Terran_Siege_Tank_Tank_Mode_Turret
public static final UnitType Terran_SCV
public static final UnitType Terran_Wraith
public static final UnitType Terran_Science_Vessel
public static final UnitType Hero_Gui_Montag
public static final UnitType Terran_Dropship
public static final UnitType Terran_Battlecruiser
public static final UnitType Terran_Vulture_Spider_Mine
public static final UnitType Terran_Nuclear_Missile
public static final UnitType Terran_Civilian
public static final UnitType Hero_Sarah_Kerrigan
public static final UnitType Hero_Alan_Schezar
public static final UnitType Hero_Alan_Schezar_Turret
public static final UnitType Hero_Jim_Raynor_Vulture
public static final UnitType Hero_Jim_Raynor_Marine
public static final UnitType Hero_Tom_Kazansky
public static final UnitType Hero_Magellan
public static final UnitType Hero_Edmund_Duke_Tank_Mode
public static final UnitType Hero_Edmund_Duke_Tank_Mode_Turret
public static final UnitType Hero_Edmund_Duke_Siege_Mode
public static final UnitType Hero_Edmund_Duke_Siege_Mode_Turret
public static final UnitType Hero_Arcturus_Mengsk
public static final UnitType Hero_Hyperion
public static final UnitType Hero_Norad_II
public static final UnitType Terran_Siege_Tank_Siege_Mode
public static final UnitType Terran_Siege_Tank_Siege_Mode_Turret
public static final UnitType Terran_Firebat
public static final UnitType Spell_Scanner_Sweep
public static final UnitType Terran_Medic
public static final UnitType Zerg_Larva
public static final UnitType Zerg_Egg
public static final UnitType Zerg_Zergling
public static final UnitType Zerg_Hydralisk
public static final UnitType Zerg_Ultralisk
public static final UnitType Zerg_Broodling
public static final UnitType Zerg_Drone
public static final UnitType Zerg_Overlord
public static final UnitType Zerg_Mutalisk
public static final UnitType Zerg_Guardian
public static final UnitType Zerg_Queen
public static final UnitType Zerg_Defiler
public static final UnitType Zerg_Scourge
public static final UnitType Hero_Torrasque
public static final UnitType Hero_Matriarch
public static final UnitType Zerg_Infested_Terran
public static final UnitType Hero_Infested_Kerrigan
public static final UnitType Hero_Unclean_One
public static final UnitType Hero_Hunter_Killer
public static final UnitType Hero_Devouring_One
public static final UnitType Hero_Kukulza_Mutalisk
public static final UnitType Hero_Kukulza_Guardian
public static final UnitType Hero_Yggdrasill
public static final UnitType Terran_Valkyrie
public static final UnitType Zerg_Cocoon
public static final UnitType Protoss_Corsair
public static final UnitType Protoss_Dark_Templar
public static final UnitType Zerg_Devourer
public static final UnitType Protoss_Dark_Archon
public static final UnitType Protoss_Probe
public static final UnitType Protoss_Zealot
public static final UnitType Protoss_Dragoon
public static final UnitType Protoss_High_Templar
public static final UnitType Protoss_Archon
public static final UnitType Protoss_Shuttle
public static final UnitType Protoss_Scout
public static final UnitType Protoss_Arbiter
public static final UnitType Protoss_Carrier
public static final UnitType Protoss_Interceptor
public static final UnitType Hero_Dark_Templar
public static final UnitType Hero_Zeratul
public static final UnitType Hero_Tassadar_Zeratul_Archon
public static final UnitType Hero_Fenix_Zealot
public static final UnitType Hero_Fenix_Dragoon
public static final UnitType Hero_Tassadar
public static final UnitType Hero_Mojo
public static final UnitType Hero_Warbringer
public static final UnitType Hero_Gantrithor
public static final UnitType Protoss_Reaver
public static final UnitType Protoss_Observer
public static final UnitType Protoss_Scarab
public static final UnitType Hero_Danimoth
public static final UnitType Hero_Aldaris
public static final UnitType Hero_Artanis
public static final UnitType Critter_Rhynadon
public static final UnitType Critter_Bengalaas
public static final UnitType Special_Cargo_Ship
public static final UnitType Special_Mercenary_Gunship
public static final UnitType Critter_Scantid
public static final UnitType Critter_Kakaru
public static final UnitType Critter_Ragnasaur
public static final UnitType Critter_Ursadon
public static final UnitType Zerg_Lurker_Egg
public static final UnitType Hero_Raszagal
public static final UnitType Hero_Samir_Duran
public static final UnitType Hero_Alexei_Stukov
public static final UnitType Special_Map_Revealer
public static final UnitType Hero_Gerard_DuGalle
public static final UnitType Zerg_Lurker
public static final UnitType Hero_Infested_Duran
public static final UnitType Spell_Disruption_Web
public static final UnitType Terran_Command_Center
public static final UnitType Terran_Comsat_Station
public static final UnitType Terran_Nuclear_Silo
public static final UnitType Terran_Supply_Depot
public static final UnitType Terran_Refinery
public static final UnitType Terran_Barracks
public static final UnitType Terran_Academy
public static final UnitType Terran_Factory
public static final UnitType Terran_Starport
public static final UnitType Terran_Control_Tower
public static final UnitType Terran_Science_Facility
public static final UnitType Terran_Covert_Ops
public static final UnitType Terran_Physics_Lab
public static final UnitType Unused_Terran1
public static final UnitType Terran_Machine_Shop
public static final UnitType Unused_Terran2
public static final UnitType Terran_Engineering_Bay
public static final UnitType Terran_Armory
public static final UnitType Terran_Missile_Turret
public static final UnitType Terran_Bunker
public static final UnitType Special_Crashed_Norad_II
public static final UnitType Special_Ion_Cannon
public static final UnitType Powerup_Uraj_Crystal
public static final UnitType Powerup_Khalis_Crystal
public static final UnitType Zerg_Infested_Command_Center
public static final UnitType Zerg_Hatchery
public static final UnitType Zerg_Lair
public static final UnitType Zerg_Hive
public static final UnitType Zerg_Nydus_Canal
public static final UnitType Zerg_Hydralisk_Den
public static final UnitType Zerg_Defiler_Mound
public static final UnitType Zerg_Greater_Spire
public static final UnitType Zerg_Queens_Nest
public static final UnitType Zerg_Evolution_Chamber
public static final UnitType Zerg_Ultralisk_Cavern
public static final UnitType Zerg_Spire
public static final UnitType Zerg_Spawning_Pool
public static final UnitType Zerg_Creep_Colony
public static final UnitType Zerg_Spore_Colony
public static final UnitType Unused_Zerg1
public static final UnitType Zerg_Sunken_Colony
public static final UnitType Special_Overmind_With_Shell
public static final UnitType Special_Overmind
public static final UnitType Zerg_Extractor
public static final UnitType Special_Mature_Chrysalis
public static final UnitType Special_Cerebrate
public static final UnitType Special_Cerebrate_Daggoth
public static final UnitType Unused_Zerg2
public static final UnitType Protoss_Nexus
public static final UnitType Protoss_Robotics_Facility
public static final UnitType Protoss_Pylon
public static final UnitType Protoss_Assimilator
public static final UnitType Unused_Protoss1
public static final UnitType Protoss_Observatory
public static final UnitType Protoss_Gateway
public static final UnitType Unused_Protoss2
public static final UnitType Protoss_Photon_Cannon
public static final UnitType Protoss_Citadel_of_Adun
public static final UnitType Protoss_Cybernetics_Core
public static final UnitType Protoss_Templar_Archives
public static final UnitType Protoss_Forge
public static final UnitType Protoss_Stargate
public static final UnitType Special_Stasis_Cell_Prison
public static final UnitType Protoss_Fleet_Beacon
public static final UnitType Protoss_Arbiter_Tribunal
public static final UnitType Protoss_Robotics_Support_Bay
public static final UnitType Protoss_Shield_Battery
public static final UnitType Special_Khaydarin_Crystal_Form
public static final UnitType Special_Protoss_Temple
public static final UnitType Special_XelNaga_Temple
public static final UnitType Resource_Mineral_Field
public static final UnitType Resource_Mineral_Field_Type_2
public static final UnitType Resource_Mineral_Field_Type_3
public static final UnitType Unused_Cave
public static final UnitType Unused_Cave_In
public static final UnitType Unused_Cantina
public static final UnitType Unused_Mining_Platform
public static final UnitType Unused_Independant_Command_Center
public static final UnitType Special_Independant_Starport
public static final UnitType Unused_Independant_Jump_Gate
public static final UnitType Unused_Ruins
public static final UnitType Unused_Khaydarin_Crystal_Formation
public static final UnitType Resource_Vespene_Geyser
public static final UnitType Special_Warp_Gate
public static final UnitType Special_Psi_Disrupter
public static final UnitType Unused_Zerg_Marker
public static final UnitType Unused_Terran_Marker
public static final UnitType Unused_Protoss_Marker
public static final UnitType Special_Zerg_Beacon
public static final UnitType Special_Terran_Beacon
public static final UnitType Special_Protoss_Beacon
public static final UnitType Special_Zerg_Flag_Beacon
public static final UnitType Special_Terran_Flag_Beacon
public static final UnitType Special_Protoss_Flag_Beacon
public static final UnitType Special_Power_Generator
public static final UnitType Special_Overmind_Cocoon
public static final UnitType Spell_Dark_Swarm
public static final UnitType Special_Floor_Missile_Trap
public static final UnitType Special_Floor_Hatch
public static final UnitType Special_Upper_Level_Door
public static final UnitType Special_Right_Upper_Level_Door
public static final UnitType Special_Pit_Door
public static final UnitType Special_Right_Pit_Door
public static final UnitType Special_Floor_Gun_Trap
public static final UnitType Special_Wall_Missile_Trap
public static final UnitType Special_Wall_Flame_Trap
public static final UnitType Special_Right_Wall_Missile_Trap
public static final UnitType Special_Right_Wall_Flame_Trap
public static final UnitType Special_Start_Location
public static final UnitType Powerup_Flag
public static final UnitType Powerup_Young_Chrysalis
public static final UnitType Powerup_Psi_Emitter
public static final UnitType Powerup_Data_Disk
public static final UnitType Powerup_Khaydarin_Crystal
public static final UnitType Powerup_Mineral_Cluster_Type_1
public static final UnitType Powerup_Mineral_Cluster_Type_2
public static final UnitType Powerup_Protoss_Gas_Orb_Type_1
public static final UnitType Powerup_Protoss_Gas_Orb_Type_2
public static final UnitType Powerup_Zerg_Gas_Sac_Type_1
public static final UnitType Powerup_Zerg_Gas_Sac_Type_2
public static final UnitType Powerup_Terran_Gas_Tank_Type_1
public static final UnitType Powerup_Terran_Gas_Tank_Type_2
public static final UnitType None
public static final UnitType AllUnits
public static final UnitType Men
public static final UnitType Buildings
public static final UnitType Factories
public static final UnitType Unknown
public static UnitType[] values()
for (UnitType c : UnitType.values()) System.out.println(c);
public static UnitType 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 static int maxUnitWidth()
public static int maxUnitHeight()
public Pair<UnitType,Integer> whatBuilds()
public Map<UnitType,Integer> requiredUnits()
public TechType requiredTech()
TechType
in order to create certain units.
The only unit that requires a technology is the @Lurker, which needs @Lurker_Aspect.
TechType
indicating the technology that must be researched in order to create this
unit type.
Returns TechType.None
If creating this unit type does not require a technology to be
researched.public TechType cloakingTech()
TechType
referring to the cloaking technology that this unit type uses as an
ability.
Returns TechType.None
If this unit type does not have an active cloak ability.public List<TechType> abilities()
public List<UpgradeType> upgrades()
public UpgradeType armorUpgrade()
UpgradeType
indicating the upgrade that increases this unit type's armor amount.public int maxHitPoints()
This value may not necessarily match the value seen in the @UMS game type.
public int maxShields()
This value may not necessarily match the value seen in the @UMS game type.
public int maxEnergy()
public int armor()
This value may not necessarily match the value seen in the @UMS game type.
public int mineralPrice()
This value may not necessarily match the value seen in the @UMS game type.
public int gasPrice()
This value may not necessarily match the value seen in the @UMS game type.
public int buildTime()
This value may not necessarily match the value seen in the @UMS game type.
Unit.getRemainingBuildTime()
public int supplyRequired()
In Starcraft programming, the managed supply values are double than what they appear in the game. The reason for this is because @Zerglings use 0.5 visible supply.
supplyProvided()
,
Player.supplyTotal()
,
Player.supplyUsed()
public int supplyProvided()
In Starcraft programming, the managed supply values are double than what they appear in the game. The reason for this is because @Zerglings use 0.5 visible supply.
supplyRequired()
,
Player.supplyTotal()
,
Player.supplyUsed()
public int spaceRequired()
spaceProvided()
public int spaceProvided()
spaceRequired()
public int buildScore()
destroyScore()
public int destroyScore()
buildScore()
public UnitSizeType size()
UnitSizeType
indicating the conceptual size of the unit type.WeaponType.damageType()
public int tileWidth()
public int tileHeight()
public TilePosition tileSize()
TilePosition
containing the width (x) and height (y) of the unit type, in tiles.public int dimensionLeft()
public int dimensionUp()
public int dimensionRight()
public int dimensionDown()
public int width()
public int height()
public int seekRange()
public int sightRange()
public WeaponType groundWeapon()
WeaponType
used as this unit type's ground weapon.maxGroundHits()
,
airWeapon()
public int maxGroundHits()
groundWeapon()
,
maxAirHits()
public WeaponType airWeapon()
maxAirHits()
,
groundWeapon()
public int maxAirHits()
airWeapon()
,
maxGroundHits()
public double topSpeed()
That some units have inconsistent movement and this value is sometimes an approximation.
public int acceleration()
public int haltDistance()
public int turnRadius()
public boolean canProduce()
public boolean canAttack()
This function returns false for units that can only inflict damage via special abilities, such as the @High_Templar.
public boolean canMove()
Buildings will return false, including @Terran liftable buildings which are capable of moving when lifted.
public boolean isFlyer()
public boolean regeneratesHP()
public boolean isSpellcaster()
public boolean hasPermanentCloak()
public boolean isInvincible()
public boolean isOrganic()
public boolean isMechanical()
public boolean isRobotic()
public boolean isDetector()
public boolean isResourceContainer()
public boolean isResourceDepot()
public boolean isRefinery()
public boolean isWorker()
public boolean requiresPsi()
public boolean requiresCreep()
public boolean isTwoUnitsInOneEgg()
public boolean isBurrowable()
The @Lurker can burrow even without researching the ability.
TechType.Burrowing
public boolean isCloakable()
hasPermanentCloak()
,
TechType.Cloaking_Field
,
TechType.Personnel_Cloaking
public boolean isBuilding()
public boolean isAddon()
public boolean isFlyingBuilding()
public boolean isNeutral()
public boolean isHero()
There are two non-hero units included in this set, the @Civilian and @Dark_Templar_Hero.
public boolean isPowerup()
public boolean isBeacon()
Special_Zerg_Beacon
, Special_Terran_Beacon
, and
Special_Protoss_Beacon
.isFlagBeacon()
public boolean isFlagBeacon()
Special_Zerg_Flag_Beacon
,
Special_Terran_Flag_Beacon
, and Special_Protoss_Flag_Beacon
.
Flag beacons spawn a @Flag after some ARBITRARY I FORGOT AMOUNT OF FRAMES.isBeacon()
public boolean isSpecialBuilding()
public boolean isSpell()
Spell_Dark_Swarm
, Spell_Disruption_Web
, and
Spell_Scanner_Sweep
, which correspond to TechType.Dark_Swarm
,
TechType.Disruption_Web
, and TechType.Scanner_Sweep
respectively.public boolean producesCreep()
public boolean producesLarva()
public boolean isMineralField()
Resource_Mineral_Field
,
Resource_Mineral_Field_Type_2
, or Resource_Mineral_Field_Type_3
.public boolean isCritter()
public boolean canBuildAddon()
isAddon()
public List<UnitType> buildsWhat()
Some maps have special parameters that disable construction of units that are otherwise
normally available. Use Player.isUnitAvailable(bwapi.UnitType)
to determine if a unit type is
actually available in the current game for a specific player.
Player.isUnitAvailable(bwapi.UnitType)
public List<TechType> researchesWhat()
Some maps have special parameters that disable certain technologies. Use
Player.isResearchAvailable(bwapi.TechType)
to determine if a technology is actually available in the
current game for a specific player.
Player.isResearchAvailable(bwapi.TechType)
public List<UpgradeType> upgradesWhat()
Some maps have special upgrade limitations. Use Player.getMaxUpgradeLevel(bwapi.UpgradeType)
to check if an upgrade is available.
Player.getMaxUpgradeLevel(bwapi.UpgradeType)
public boolean isSuccessorOf(UnitType type)
type
- The unit type to check.TechType.whatResearches()
,
UpgradeType.whatUpgrades()
Copyright © 2022. All rights reserved.