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

#include <TechType.h>

Inheritance diagram for BWAPI::TechType:
Inheritance graph
[legend]
Collaboration diagram for BWAPI::TechType:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TechType ()
 TechType (int id)
const std::string & getName () const
const char * c_str () 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


Member Function Documentation

const char * BWAPI::TechType::c_str ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the vespene gas price of the tech type.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Returns the name of the tech type.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the mineral cost of the tech type.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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 call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:


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