public enum TechType extends Enum<TechType>
TechType
(or Technology Type, also referred to as an Ability) represents a Unit's ability
which can be researched with Unit.research(bwapi.TechType)
or used with Unit.useTech(bwapi.TechType)
.
In order for a Unit
to use its own specialized ability, it must first be available and researched.
Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
int |
energyCost()
Retrieves the amount of energy needed to use this
TechType as an ability. |
int |
gasPrice()
Retrieves the vespene gas cost of researching this technology.
|
Order |
getOrder()
Retrieves the
Order that a Unit uses when using this ability. |
Race |
getRace()
Retrieves the race that is required to research or use the
TechType . |
WeaponType |
getWeapon()
Retrieves the Weapon that is attached to this tech type.
|
int |
mineralPrice()
Retrieves the mineral cost of researching this technology.
|
UnitType |
requiredUnit()
Retrieves the
UnitType required to research this technology. |
int |
researchTime()
Retrieves the number of frames needed to research the tech type.
|
boolean |
targetsPosition()
Checks if this ability can be used on the terrain (ground).
|
boolean |
targetsUnit()
Checks if this ability can be used on other units.
|
static TechType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TechType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
UnitType |
whatResearches()
Retrieves the
UnitType that can research this technology. |
List<UnitType> |
whatUses()
Retrieves the set of all UnitTypes that are capable of using this ability.
|
public static final TechType Stim_Packs
public static final TechType Lockdown
public static final TechType EMP_Shockwave
public static final TechType Spider_Mines
public static final TechType Scanner_Sweep
public static final TechType Tank_Siege_Mode
public static final TechType Defensive_Matrix
public static final TechType Irradiate
public static final TechType Yamato_Gun
public static final TechType Cloaking_Field
public static final TechType Personnel_Cloaking
public static final TechType Burrowing
public static final TechType Infestation
public static final TechType Spawn_Broodlings
public static final TechType Dark_Swarm
public static final TechType Plague
public static final TechType Consume
public static final TechType Ensnare
public static final TechType Parasite
public static final TechType Psionic_Storm
public static final TechType Hallucination
public static final TechType Recall
public static final TechType Stasis_Field
public static final TechType Archon_Warp
public static final TechType Restoration
public static final TechType Disruption_Web
public static final TechType Unused_26
public static final TechType Mind_Control
public static final TechType Dark_Archon_Meld
public static final TechType Feedback
public static final TechType Optical_Flare
public static final TechType Maelstrom
public static final TechType Lurker_Aspect
public static final TechType Unused_33
public static final TechType Healing
public static final TechType None
public static final TechType Nuclear_Strike
public static final TechType Unknown
public static TechType[] values()
for (TechType c : TechType.values()) System.out.println(c);
public static TechType 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()
TechType
.
There is an exception where @Infested_Kerrigan can use @Psi_Storm. This does not apply to the behavior of this function.
Race
object indicating which race is designed to use this technology type.public int mineralPrice()
public int gasPrice()
public int researchTime()
Unit.getRemainingResearchTime()
public int energyCost()
TechType
as an ability.Unit.getEnergy()
public UnitType whatResearches()
UnitType
that can research this technology.UnitType.None
If the technology/ability is either provided for free or never
available.public WeaponType getWeapon()
WeaponType
is used to indicate the range and behaviour of the ability
when used by a Unit.WeaponType.None
If there is no corresponding WeaponType.public boolean targetsUnit()
public boolean targetsPosition()
public List<UnitType> whatUses()
public Order getOrder()
Order
that a Unit uses when using this ability.Order
representing the action a Unit uses to perform this abilitypublic UnitType requiredUnit()
UnitType
required to research this technology.
The required unit type must be a completed unit owned by the player researching the
technology.UnitType
that is needed to research this tech type.
Returns UnitType.None
if no unit is required to research this tech type.Player.completedUnitCount()
Copyright © 2022. All rights reserved.