BWAPI
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Public Member Functions
BWAPI::TechType Class Reference

#include <TechType.h>

List of all members.

Public Member Functions

 TechType ()
 TechType (int id)
 TechType (const TechType &other)
TechTypeoperator= (const TechType &other)
 operator int () const
int getID () const
std::string getName () const
Race getRace () const
int mineralPrice () const
int gasPrice () const
int researchTime () const
int energyUsed () const
UnitType whatResearches () const
WeaponType getWeapon () const
bool targetsUnit () const
bool targetsPosition () const
const std::set< UnitType > & whatUses () const
Order getOrder () const

Constructor & Destructor Documentation

BWAPI::TechType::TechType ( const TechType other)

Member Function Documentation

Returns the amount of energy used each time this tech type is used.

Returns the vespene gas price of the tech type.

Here is the caller graph for this function:

int BWAPI::TechType::getID ( ) const

Returns the unique ID for this tech type.

std::string BWAPI::TechType::getName ( ) const

Returns the name of the tech type.

Here is the caller graph for this function:

Returns the order used to execute this tech type as an action.

Returns the race that uses the TechType. For example, TechTypes::Scanner_Sweep?.getRace() will return Races::Terran.

Returns the corresponding weapon for this tech type, or TechTypes::None if no corresponding weapon exists. For example, TechTypes::Dark_Swarm.getWeapon() will return a pointer to WeaponTypes::Dark_Swarm.

Returns the mineral cost of the tech type.

Here is the caller graph for this function:

BWAPI::TechType::operator int ( ) const
TechType& BWAPI::TechType::operator= ( const TechType other)

Returns the number of frames needed to research the tech type.

Returns true if this tech type must be specified a position (i.e. Dark Swarm)

Returns true if this tech type must be used on another unit (i.e. Irradiate)

Returns the type of unit that researches this tech type. If this tech type is available for free (does not need to be researched), then this method will return UnitTypes::None.

Here is the caller graph for this function:

const std::set<UnitType>& BWAPI::TechType::whatUses ( ) const

Returns the set of units that can use this tech type. Usually this will just be a set of one unit type, however in some cases, such as TechTypes::Burrowing, several unit types will be returned.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines