BWAPI 4.2.0 An API for interacting with Starcraft: Broodwar (1.16.1) |
Public Member Functions | |
constexpr | TechType (int id=TechTypes::Enum::None) |
int | energyCost () const |
int | gasPrice () const |
Order | getOrder () const |
Race | getRace () const |
WeaponType | getWeapon () const |
int | mineralPrice () const |
UnitType | requiredUnit () const |
int | researchTime () const |
bool | targetsPosition () const |
bool | targetsUnit () const |
UnitType | whatResearches () const |
const UnitType::set & | whatUses () const |
The TechType (or Technology Type, also referred to as an Ability) represents a Unit's ability which can be researched with UnitInterface::research or used with UnitInterface::useTech.
In order for a Unit to use its own specialized ability, it must first be available and researched.
TechTypes::Enum::None
)Expected type constructor.
If the type is an invalid type, then it becomes Types::Unknown. A type is invalid if its value is less than 0 or greater than Types::Unknown.
id | The id that corresponds to this type. It is typically an integer value that corresponds to an internal Broodwar type. If the given id is invalid, then it becomes Types::Unknown. |
References BWAPI::TechTypes::allTechTypes().
Retrieves the race that is required to research or use the TechType.
Retrieves the mineral cost of researching this technology.
Retrieves the vespene gas cost of researching this technology.
Retrieves the number of frames needed to research the tech type.
Retrieves the amount of energy needed to use this TechType as an ability.
Retrieves the UnitType that can research this technology.
UnitTypes::None | If the technology/ability is either provided for free or never available. |
Retrieves the Weapon that is attached to this tech type.
A technology's WeaponType is used to indicate the range and behaviour of the ability when used by a Unit.
WeaponTypes::None | If there is no corresponding WeaponType. |
Checks if this ability can be used on other units.
Checks if this ability can be used on the terrain (ground).
Retrieves the UnitType required to research this technology.
The required unit type must be a completed unit owned by the player researching the technology.
UnitTypes::None | if no unit is required to research this tech type. |