An API for interacting with Starcraft: Broodwar (1.16.1)
|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|
In order for a Unit to use its own specialized ability, it must first be available and researched.
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.|
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 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.
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.|