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

#include <UpgradeType.h>

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

List of all members.

Public Member Functions

 UpgradeType ()
 UpgradeType (int id)
const std::string & getName () const
const char * c_str () const
Race getRace () const
int mineralPrice (int level=1) const
int mineralPriceFactor () const
int gasPrice (int level=1) const
int gasPriceFactor () const
int upgradeTime (int level=1) const
int upgradeTimeFactor () const
int maxRepeats () const
UnitType whatUpgrades () const
UnitType whatsRequired (int level=1) const
const std::set< UnitType > & whatUses () const

Constructor & Destructor Documentation


Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

int BWAPI::UpgradeType::gasPrice ( int  level = 1) const

Returns the vespene gas price for the first upgrade.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the amount that the vespene gas price increases for each additional upgrade.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Returns the name for the upgrade type.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the race the upgrade is for. For example, UpgradeTypes::Terran_Infantry_Armor.getRace() will return Races::Terran.

Here is the call graph for this function:

Returns the maximum number of times the upgrade can be researched.

Here is the call graph for this function:

Returns the mineral price for the first upgrade.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the amount that the mineral price increases for each additional upgrade.

Here is the call graph for this function:

Here is the caller graph for this function:

int BWAPI::UpgradeType::upgradeTime ( int  level = 1) const

Returns the number of frames needed to research the first upgrade.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the number of frames that the upgrade time increases for each additional upgrade.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the type of unit that is additionally required for the upgrade.

Here is the call graph for this function:

Returns the type of unit that researches the upgrade.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Returns the set of units that are affected by this upgrade.

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