public enum WeaponType extends Enum<WeaponType>
Some weapon types can be upgraded while others are used for special abilities.
Modifier and Type | Method and Description |
---|---|
int |
damageAmount()
Retrieves the base amount of damage that this weapon can deal per attack.
|
int |
damageBonus()
Determines the bonus amount of damage that this weapon type increases by for every
upgrade to this type.
|
int |
damageCooldown()
Retrieves the base amount of cooldown time between each attack, in frames.
|
int |
damageFactor()
Obtains the intended number of missiles/attacks that are used.
|
DamageType |
damageType()
Retrieves the damage type that this weapon applies to a unit type.
|
ExplosionType |
explosionType()
Retrieves the explosion type that indicates how the weapon deals damage.
|
TechType |
getTech()
Retrieves the technology type that must be researched before this weapon can
be used.
|
int |
innerSplashRadius()
Retrieves the inner radius used for splash damage calculations, in pixels.
|
int |
maxRange()
Retrieves the maximum attack range of the weapon, measured in pixels.
|
int |
medianSplashRadius()
Retrieves the middle radius used for splash damage calculations, in pixels.
|
int |
minRange()
Retrieves the minimum attack range of the weapon, measured in pixels.
|
int |
outerSplashRadius()
Retrieves the outer radius used for splash damage calculations, in pixels.
|
boolean |
targetsAir()
Checks if this weapon type can target air units.
|
boolean |
targetsGround()
Checks if this weapon type can target ground units.
|
boolean |
targetsMechanical()
Checks if this weapon type can only target mechanical units.
|
boolean |
targetsNonBuilding()
Checks if this weapon type cannot target structures.
|
boolean |
targetsNonRobotic()
Checks if this weapon type cannot target robotic units.
|
boolean |
targetsOrganic()
Checks if this weapon type can only target organic units.
|
boolean |
targetsOrgOrMech()
Checks if this weapon type can only target organic or mechanical units.
|
boolean |
targetsOwn()
Checks if this weapon type can only target units owned by the same player.
|
boolean |
targetsTerrain()
Checks if this weapon type can target the ground.
|
UpgradeType |
upgradeType()
Retrieves the upgrade type that increases this weapon's damage output.
|
static WeaponType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeaponType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
UnitType |
whatUses()
Retrieves the unit type that is intended to use this weapon type.
|
public static final WeaponType Gauss_Rifle
public static final WeaponType Gauss_Rifle_Jim_Raynor
public static final WeaponType C_10_Canister_Rifle
public static final WeaponType C_10_Canister_Rifle_Sarah_Kerrigan
public static final WeaponType Fragmentation_Grenade
public static final WeaponType Fragmentation_Grenade_Jim_Raynor
public static final WeaponType Spider_Mines
public static final WeaponType Twin_Autocannons
public static final WeaponType Hellfire_Missile_Pack
public static final WeaponType Twin_Autocannons_Alan_Schezar
public static final WeaponType Hellfire_Missile_Pack_Alan_Schezar
public static final WeaponType Arclite_Cannon
public static final WeaponType Arclite_Cannon_Edmund_Duke
public static final WeaponType Fusion_Cutter
public static final WeaponType Gemini_Missiles
public static final WeaponType Burst_Lasers
public static final WeaponType Gemini_Missiles_Tom_Kazansky
public static final WeaponType Burst_Lasers_Tom_Kazansky
public static final WeaponType ATS_Laser_Battery
public static final WeaponType ATA_Laser_Battery
public static final WeaponType ATS_Laser_Battery_Hero
public static final WeaponType ATA_Laser_Battery_Hero
public static final WeaponType ATS_Laser_Battery_Hyperion
public static final WeaponType ATA_Laser_Battery_Hyperion
public static final WeaponType Flame_Thrower
public static final WeaponType Flame_Thrower_Gui_Montag
public static final WeaponType Arclite_Shock_Cannon
public static final WeaponType Arclite_Shock_Cannon_Edmund_Duke
public static final WeaponType Longbolt_Missile
public static final WeaponType Yamato_Gun
public static final WeaponType Nuclear_Strike
public static final WeaponType Lockdown
public static final WeaponType EMP_Shockwave
public static final WeaponType Irradiate
public static final WeaponType Claws
public static final WeaponType Claws_Devouring_One
public static final WeaponType Claws_Infested_Kerrigan
public static final WeaponType Needle_Spines
public static final WeaponType Needle_Spines_Hunter_Killer
public static final WeaponType Kaiser_Blades
public static final WeaponType Kaiser_Blades_Torrasque
public static final WeaponType Toxic_Spores
public static final WeaponType Spines
public static final WeaponType Acid_Spore
public static final WeaponType Acid_Spore_Kukulza
public static final WeaponType Glave_Wurm
public static final WeaponType Glave_Wurm_Kukulza
public static final WeaponType Seeker_Spores
public static final WeaponType Subterranean_Tentacle
public static final WeaponType Suicide_Infested_Terran
public static final WeaponType Suicide_Scourge
public static final WeaponType Parasite
public static final WeaponType Spawn_Broodlings
public static final WeaponType Ensnare
public static final WeaponType Dark_Swarm
public static final WeaponType Plague
public static final WeaponType Consume
public static final WeaponType Particle_Beam
public static final WeaponType Psi_Blades
public static final WeaponType Psi_Blades_Fenix
public static final WeaponType Phase_Disruptor
public static final WeaponType Phase_Disruptor_Fenix
public static final WeaponType Psi_Assault
public static final WeaponType Psionic_Shockwave
public static final WeaponType Psionic_Shockwave_TZ_Archon
public static final WeaponType Dual_Photon_Blasters
public static final WeaponType Anti_Matter_Missiles
public static final WeaponType Dual_Photon_Blasters_Mojo
public static final WeaponType Anti_Matter_Missiles_Mojo
public static final WeaponType Phase_Disruptor_Cannon
public static final WeaponType Phase_Disruptor_Cannon_Danimoth
public static final WeaponType Pulse_Cannon
public static final WeaponType STS_Photon_Cannon
public static final WeaponType STA_Photon_Cannon
public static final WeaponType Scarab
public static final WeaponType Stasis_Field
public static final WeaponType Psionic_Storm
public static final WeaponType Warp_Blades_Zeratul
public static final WeaponType Warp_Blades_Hero
public static final WeaponType Platform_Laser_Battery
public static final WeaponType Independant_Laser_Battery
public static final WeaponType Twin_Autocannons_Floor_Trap
public static final WeaponType Hellfire_Missile_Pack_Wall_Trap
public static final WeaponType Flame_Thrower_Wall_Trap
public static final WeaponType Hellfire_Missile_Pack_Floor_Trap
public static final WeaponType Neutron_Flare
public static final WeaponType Disruption_Web
public static final WeaponType Restoration
public static final WeaponType Halo_Rockets
public static final WeaponType Corrosive_Acid
public static final WeaponType Mind_Control
public static final WeaponType Feedback
public static final WeaponType Optical_Flare
public static final WeaponType Maelstrom
public static final WeaponType Subterranean_Spines
public static final WeaponType Warp_Blades
public static final WeaponType C_10_Canister_Rifle_Samir_Duran
public static final WeaponType C_10_Canister_Rifle_Infested_Duran
public static final WeaponType Dual_Photon_Blasters_Artanis
public static final WeaponType Anti_Matter_Missiles_Artanis
public static final WeaponType C_10_Canister_Rifle_Alexei_Stukov
public static final WeaponType None
public static final WeaponType Unknown
public static WeaponType[] values()
for (WeaponType c : WeaponType.values()) System.out.println(c);
public static WeaponType 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 TechType getTech()
TechType
required by this weapon.
Returns TechType.None
if no tech type is required to use this weapon.TechType.getWeapon()
public UnitType whatUses()
There is a rare case where some hero unit types use the same weapon.
UnitType
that uses this weapon.UnitType.groundWeapon()
,
UnitType.airWeapon()
public int damageAmount()
That this damage amount must go through a DamageType
and UnitSizeType
filter
before it is applied to a unit.
public int damageBonus()
upgradeType()
public int damageCooldown()
Unit.getGroundWeaponCooldown()
,
Unit.getAirWeaponCooldown()
public int damageFactor()
damageAmount()
public UpgradeType upgradeType()
UpgradeType
used to upgrade this weapon's damage.damageBonus()
public DamageType damageType()
DamageType
used for damage calculation.DamageType
,
UnitSizeType
public ExplosionType explosionType()
public int minRange()
Arclite_Shock_Cannon
and Arclite_Shock_Cannon_Edmund_Duke
.public int maxRange()
public int innerSplashRadius()
public int medianSplashRadius()
public int outerSplashRadius()
public boolean targetsAir()
Unit.isFlying()
,
UnitType.isFlyer()
public boolean targetsGround()
Unit.isFlying()
,
UnitType.isFlyer()
public boolean targetsMechanical()
targetsOrgOrMech()
,
UnitType.isMechanical()
public boolean targetsOrganic()
targetsOrgOrMech()
,
UnitType.isOrganic()
public boolean targetsNonBuilding()
UnitType.isBuilding()
public boolean targetsNonRobotic()
UnitType.isRobotic()
public boolean targetsTerrain()
This is more for attacks like @Psi_Storm which can target a location, not to be confused with attack move.
public boolean targetsOrgOrMech()
targetsOrganic()
,
targetsMechanical()
,
UnitType.isOrganic()
,
UnitType.isMechanical()
public boolean targetsOwn()
Consume
.Unit.getPlayer()
Copyright © 2022. All rights reserved.