public class UnitType
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.List<TechType> |
abilities()
Returns the set of tech types this unit can use, provided the tech types have been researched and
the unit has enough energy.
|
int |
acceleration()
Returns how fast the unit can accelerate to its top speed.
|
WeaponType |
airWeapon()
Returns the unit's air weapon.
|
int |
armor()
Returns the amount of armor the non-upgraded unit type has.
|
UpgradeType |
armorUpgrade()
Returns the upgrade that increase's the unit's armor, or UpgradeTypes::None if no upgrade
increase's this unit's armor.
|
int |
buildScore()
Returns the score which is used to determine the total scores in the after-game stats screen.
|
int |
buildTime()
Returns the number of frames needed to make this unit type.
|
java.lang.String |
c_str()
Returns the name of the unit.
|
boolean |
canAttack()
Returns true if the unit can attack (either ground or air).
|
boolean |
canBuildAddon()
Returns true if the unit is capable of constructing an addon.
|
boolean |
canMove()
Returns true if the unit can move.
|
boolean |
canProduce()
Returns true if the unit can train other units.
|
TechType |
cloakingTech()
Returns the tech used to cloak the unit, or TechTypes::None if the unit cannot cloak or is
permanently cloaked
|
int |
destroyScore()
Returns the score which is used to determine the total scores in the after-game stats screen.
|
int |
dimensionDown()
Distance from the center of the unit to the bottom edge of the unit, measured in pixels.
|
int |
dimensionLeft()
Distance from the center of the unit to the left edge of the unit, measured in pixels.
|
int |
dimensionRight()
Distance from the center of the unit to the right edge of the unit, measured in pixels.
|
int |
dimensionUp()
Distance from the center of the unit to the top edge of the unit, measured in pixels.
|
int |
gasPrice()
UnitTypes::Siege_Tank_Tank_Mode.gasPrice() returns 100.
|
Race |
getRace()
Returns the race that the unit belongs to.
|
WeaponType |
groundWeapon()
Returns the unit's ground weapon.
|
int |
haltDistance()
Related to how fast the unit can halt.
|
boolean |
hasPermanentCloak()
Returns true for the two units that are permanently cloaked - Protoss Observer and Protoss Dark
Templar.
|
boolean |
isAddon()
Returns true if the unit is an add-on, such as a Terran Comsat Station.
|
boolean |
isBeacon()
Returns true if the unit is a regular Beacon.
|
boolean |
isBuilding()
Returns true if the unit is a building (also true for mineral field and vespene geyser).
|
boolean |
isBurrowable()
Returns true for Zerg Lurker and units that can burrow when burrow tech is researched.
|
boolean |
isCloakable()
Returns true for units that can be cloaked - Terran Ghost and Terran Wraith.
|
boolean |
isDetector()
Returns true for the seven units that can detect cloaked units - Terran Science Vessel, Spell
Scanner Sweep, Zerg Overlord, Protoss Observer, Terran Missile Turret, Zerg Spore Colony, and Protoss
Photon Cannon.
|
boolean |
isFlagBeacon()
Returns true if the unit is a flag Beacon.
|
boolean |
isFlyer()
Returns true for flying/air units.
|
boolean |
isFlyingBuilding()
Returns true for Terran buildings that can lift off (i.e.
|
boolean |
isHero()
Returns true if the unit is a Hero unit.
|
boolean |
isInvincible()
Returns true for units that cannot be destroyed (i.e.
|
boolean |
isMechanical()
Returns true if the unit is mechanical such as a Terran Vulture.
|
boolean |
isMineralField()
Returns true if the unit is one of the three mineral field types.
|
boolean |
isNeutral()
Returns true if the unit is neutral, such as a critter or mineral field.
|
boolean |
isOrganic()
Returns true if the unit is organic, such as a Terran Marine.
|
boolean |
isPowerup()
Returns true if the unit is a Powerup unit.
|
boolean |
isRefinery()
Returns true for Terran Refinery, Zerg Extractor, and Protoss Assimilator.
|
boolean |
isResourceContainer()
Returns true for the five units that hold resources - Mineral Field, Vespene Geyser,
Terran Refinery, Zerg Extractor, and Protoss Assimilator.
|
boolean |
isResourceDepot()
Returns true for the five units that can accept resources - Terran Command Center, Protoss Nexus,
Zerg Hatchery, Zerg Lair, and Zerg Hive.
|
boolean |
isRobotic()
Returns true for the four robotic Protoss units - Probe, Shuttle, Reaver, and Observer.
|
boolean |
isSpecialBuilding()
Returns true if the unit is a special building.
|
boolean |
isSpell()
Returns true if the unit is a spell unit.
|
boolean |
isSpellcaster()
Returns true if the unit type is capable of casting spells / using technology.
|
boolean |
isTwoUnitsInOneEgg()
Returns true for Zergling and Scourge.
|
boolean |
isWorker()
Returns true for Protoss Probe, Terran SCV, and Zerg Drone.
|
int |
maxAirHits() |
int |
maxEnergy()
Returns the maximum amount of energy the unit type can have.
|
int |
maxGroundHits() |
int |
maxHitPoints()
Returns the maximum amount of hit points the unit type can have.
|
int |
maxShields()
Returns the maximum amount of shields the unit type can have.
|
int |
mineralPrice()
Returns the mineral price of the unit.
|
boolean |
producesLarva()
Returns true if the unit produces larva.
|
boolean |
regeneratesHP()
Returns true for units that regenerate health (i.e. zerg units).
|
TechType |
requiredTech()
Returns what builds this unit type.
|
boolean |
requiresCreep()
Returns true for buildings that can only be built on zerg creep.
|
boolean |
requiresPsi()
Returns true for buildings that must be near a pylon to be constructed.
|
int |
seekRange()
Returns the range at which the unit will start targeting enemy units, measured in pixels.
|
int |
sightRange()
Returns how far the un-upgraded unit type can see into the fog of war, measured in pixels.
|
UnitSizeType |
size()
Returns the size of the unit - either Small, Medium, Large, or Independent.
|
int |
spaceProvided()
Returns the amount of space this unit type provides.
|
int |
spaceRequired()
Returns the amount of space this unit type takes up inside a bunker or transport unit.
|
int |
supplyProvided()
Returns the amount of supply produced by this unit (i.e. for a Protoss_Pylon).
|
int |
supplyRequired()
Returns the amount of supply used by this unit.
|
int |
tileHeight()
Returns the tile height of the unit.
|
int |
tileWidth()
Returns the tile width of the unit.
|
double |
topSpeed()
Returns the unit's non-upgraded top speed in pixels per frame.
|
java.lang.String |
toString() |
int |
turnRadius()
Related to how fast the unit can turn.
|
java.util.List<UpgradeType> |
upgrades()
Returns the set of upgrade types that can affect this unit.
|
public static UnitType Terran_Marine
public static UnitType Hero_Jim_Raynor_Marine
public static UnitType Terran_Ghost
public static UnitType Hero_Sarah_Kerrigan
public static UnitType Hero_Samir_Duran
public static UnitType Hero_Infested_Duran
public static UnitType Hero_Alexei_Stukov
public static UnitType Terran_Vulture
public static UnitType Hero_Jim_Raynor_Vulture
public static UnitType Terran_Goliath
public static UnitType Hero_Alan_Schezar
public static UnitType Terran_Siege_Tank_Tank_Mode
public static UnitType Hero_Edmund_Duke_Tank_Mode
public static UnitType Terran_SCV
public static UnitType Terran_Wraith
public static UnitType Hero_Tom_Kazansky
public static UnitType Terran_Science_Vessel
public static UnitType Hero_Magellan
public static UnitType Terran_Dropship
public static UnitType Terran_Battlecruiser
public static UnitType Hero_Arcturus_Mengsk
public static UnitType Hero_Hyperion
public static UnitType Hero_Norad_II
public static UnitType Hero_Gerard_DuGalle
public static UnitType Terran_Vulture_Spider_Mine
public static UnitType Terran_Nuclear_Missile
public static UnitType Terran_Siege_Tank_Siege_Mode
public static UnitType Hero_Edmund_Duke_Siege_Mode
public static UnitType Terran_Firebat
public static UnitType Hero_Gui_Montag
public static UnitType Spell_Scanner_Sweep
public static UnitType Terran_Medic
public static UnitType Terran_Civilian
public static UnitType Zerg_Larva
public static UnitType Zerg_Egg
public static UnitType Zerg_Zergling
public static UnitType Hero_Devouring_One
public static UnitType Hero_Infested_Kerrigan
public static UnitType Zerg_Hydralisk
public static UnitType Hero_Hunter_Killer
public static UnitType Zerg_Ultralisk
public static UnitType Hero_Torrasque
public static UnitType Zerg_Broodling
public static UnitType Zerg_Drone
public static UnitType Zerg_Overlord
public static UnitType Hero_Yggdrasill
public static UnitType Zerg_Mutalisk
public static UnitType Hero_Kukulza_Mutalisk
public static UnitType Zerg_Guardian
public static UnitType Hero_Kukulza_Guardian
public static UnitType Zerg_Queen
public static UnitType Hero_Matriarch
public static UnitType Zerg_Defiler
public static UnitType Hero_Unclean_One
public static UnitType Zerg_Scourge
public static UnitType Zerg_Infested_Terran
public static UnitType Terran_Valkyrie
public static UnitType Zerg_Cocoon
public static UnitType Protoss_Corsair
public static UnitType Hero_Raszagal
public static UnitType Protoss_Dark_Templar
public static UnitType Hero_Dark_Templar
public static UnitType Hero_Zeratul
public static UnitType Zerg_Devourer
public static UnitType Protoss_Dark_Archon
public static UnitType Protoss_Probe
public static UnitType Protoss_Zealot
public static UnitType Hero_Fenix_Zealot
public static UnitType Protoss_Dragoon
public static UnitType Hero_Fenix_Dragoon
public static UnitType Protoss_High_Templar
public static UnitType Hero_Tassadar
public static UnitType Hero_Aldaris
public static UnitType Protoss_Archon
public static UnitType Hero_Tassadar_Zeratul_Archon
public static UnitType Protoss_Shuttle
public static UnitType Protoss_Scout
public static UnitType Hero_Mojo
public static UnitType Hero_Artanis
public static UnitType Protoss_Arbiter
public static UnitType Hero_Danimoth
public static UnitType Protoss_Carrier
public static UnitType Hero_Gantrithor
public static UnitType Protoss_Interceptor
public static UnitType Protoss_Reaver
public static UnitType Hero_Warbringer
public static UnitType Protoss_Observer
public static UnitType Protoss_Scarab
public static UnitType Critter_Rhynadon
public static UnitType Critter_Bengalaas
public static UnitType Special_Cargo_Ship
public static UnitType Special_Mercenary_Gunship
public static UnitType Critter_Scantid
public static UnitType Critter_Kakaru
public static UnitType Critter_Ragnasaur
public static UnitType Critter_Ursadon
public static UnitType Zerg_Lurker_Egg
public static UnitType Zerg_Lurker
public static UnitType Spell_Disruption_Web
public static UnitType Terran_Command_Center
public static UnitType Terran_Comsat_Station
public static UnitType Terran_Nuclear_Silo
public static UnitType Terran_Supply_Depot
public static UnitType Terran_Refinery
public static UnitType Terran_Barracks
public static UnitType Terran_Academy
public static UnitType Terran_Factory
public static UnitType Terran_Starport
public static UnitType Terran_Control_Tower
public static UnitType Terran_Science_Facility
public static UnitType Terran_Covert_Ops
public static UnitType Terran_Physics_Lab
public static UnitType Terran_Machine_Shop
public static UnitType Terran_Engineering_Bay
public static UnitType Terran_Armory
public static UnitType Terran_Missile_Turret
public static UnitType Terran_Bunker
public static UnitType Special_Crashed_Norad_II
public static UnitType Special_Ion_Cannon
public static UnitType Zerg_Infested_Command_Center
public static UnitType Zerg_Hatchery
public static UnitType Zerg_Lair
public static UnitType Zerg_Hive
public static UnitType Zerg_Nydus_Canal
public static UnitType Zerg_Hydralisk_Den
public static UnitType Zerg_Defiler_Mound
public static UnitType Zerg_Greater_Spire
public static UnitType Zerg_Queens_Nest
public static UnitType Zerg_Evolution_Chamber
public static UnitType Zerg_Ultralisk_Cavern
public static UnitType Zerg_Spire
public static UnitType Zerg_Spawning_Pool
public static UnitType Zerg_Creep_Colony
public static UnitType Zerg_Spore_Colony
public static UnitType Zerg_Sunken_Colony
public static UnitType Special_Overmind_With_Shell
public static UnitType Special_Overmind
public static UnitType Zerg_Extractor
public static UnitType Special_Mature_Chrysalis
public static UnitType Special_Cerebrate
public static UnitType Special_Cerebrate_Daggoth
public static UnitType Protoss_Nexus
public static UnitType Protoss_Robotics_Facility
public static UnitType Protoss_Pylon
public static UnitType Protoss_Assimilator
public static UnitType Protoss_Observatory
public static UnitType Protoss_Gateway
public static UnitType Protoss_Photon_Cannon
public static UnitType Protoss_Citadel_of_Adun
public static UnitType Protoss_Cybernetics_Core
public static UnitType Protoss_Templar_Archives
public static UnitType Protoss_Forge
public static UnitType Protoss_Stargate
public static UnitType Special_Stasis_Cell_Prison
public static UnitType Protoss_Fleet_Beacon
public static UnitType Protoss_Arbiter_Tribunal
public static UnitType Protoss_Robotics_Support_Bay
public static UnitType Protoss_Shield_Battery
public static UnitType Special_Khaydarin_Crystal_Form
public static UnitType Special_Protoss_Temple
public static UnitType Special_XelNaga_Temple
public static UnitType Resource_Mineral_Field
public static UnitType Resource_Mineral_Field_Type_2
public static UnitType Resource_Mineral_Field_Type_3
public static UnitType Special_Independant_Starport
public static UnitType Resource_Vespene_Geyser
public static UnitType Special_Warp_Gate
public static UnitType Special_Psi_Disrupter
public static UnitType Special_Power_Generator
public static UnitType Special_Overmind_Cocoon
public static UnitType Special_Zerg_Beacon
public static UnitType Special_Terran_Beacon
public static UnitType Special_Protoss_Beacon
public static UnitType Special_Zerg_Flag_Beacon
public static UnitType Special_Terran_Flag_Beacon
public static UnitType Special_Protoss_Flag_Beacon
public static UnitType Spell_Dark_Swarm
public static UnitType Powerup_Uraj_Crystal
public static UnitType Powerup_Khalis_Crystal
public static UnitType Powerup_Flag
public static UnitType Powerup_Young_Chrysalis
public static UnitType Powerup_Psi_Emitter
public static UnitType Powerup_Data_Disk
public static UnitType Powerup_Khaydarin_Crystal
public static UnitType Powerup_Mineral_Cluster_Type_1
public static UnitType Powerup_Mineral_Cluster_Type_2
public static UnitType Powerup_Protoss_Gas_Orb_Type_1
public static UnitType Powerup_Protoss_Gas_Orb_Type_2
public static UnitType Powerup_Zerg_Gas_Sac_Type_1
public static UnitType Powerup_Zerg_Gas_Sac_Type_2
public static UnitType Powerup_Terran_Gas_Tank_Type_1
public static UnitType Powerup_Terran_Gas_Tank_Type_2
public static UnitType Special_Map_Revealer
public static UnitType Special_Floor_Missile_Trap
public static UnitType Special_Floor_Hatch
public static UnitType Special_Upper_Level_Door
public static UnitType Special_Right_Upper_Level_Door
public static UnitType Special_Pit_Door
public static UnitType Special_Right_Pit_Door
public static UnitType Special_Floor_Gun_Trap
public static UnitType Special_Wall_Missile_Trap
public static UnitType Special_Wall_Flame_Trap
public static UnitType Special_Right_Wall_Missile_Trap
public static UnitType Special_Right_Wall_Flame_Trap
public static UnitType Special_Start_Location
public static UnitType None
public static UnitType AllUnits
public static UnitType Men
public static UnitType Buildings
public static UnitType Factories
public static UnitType Unknown
public java.lang.String c_str()
public java.lang.String toString()
toString
in class java.lang.Object
public Race getRace()
public TechType requiredTech()
public TechType cloakingTech()
public java.util.List<TechType> abilities()
public java.util.List<UpgradeType> upgrades()
public UpgradeType armorUpgrade()
public int maxHitPoints()
public int maxShields()
public int maxEnergy()
public int armor()
public int mineralPrice()
public int gasPrice()
public int buildTime()
public int supplyRequired()
public int supplyProvided()
public int spaceRequired()
public int spaceProvided()
public int buildScore()
public int destroyScore()
public UnitSizeType size()
public int tileWidth()
public int tileHeight()
public int dimensionLeft()
public int dimensionUp()
public int dimensionRight()
public int dimensionDown()
public int seekRange()
public int sightRange()
public WeaponType groundWeapon()
public int maxGroundHits()
public WeaponType airWeapon()
public int maxAirHits()
public double topSpeed()
public int acceleration()
public int haltDistance()
public int turnRadius()
public boolean canProduce()
public boolean canAttack()
public boolean canMove()
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()
public boolean isCloakable()
public boolean isBuilding()
public boolean isAddon()
public boolean isFlyingBuilding()
public boolean isNeutral()
public boolean isHero()
public boolean isPowerup()
public boolean isBeacon()
public boolean isFlagBeacon()
public boolean isSpecialBuilding()
public boolean isSpell()
public boolean producesLarva()
public boolean isMineralField()
public boolean canBuildAddon()