|
BWAPI
|
#include <UpgradeType.h>


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 |
| const char * BWAPI::UpgradeType::c_str | ( | ) | const |


| int BWAPI::UpgradeType::gasPrice | ( | int | level = 1 | ) | const |
Returns the vespene gas price for the first upgrade.


| int BWAPI::UpgradeType::gasPriceFactor | ( | ) | const |
Returns the amount that the vespene gas price increases for each additional upgrade.


| const std::string & BWAPI::UpgradeType::getName | ( | ) | const |
Returns the name for the upgrade type.


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

| int BWAPI::UpgradeType::maxRepeats | ( | ) | const |
Returns the maximum number of times the upgrade can be researched.

| int BWAPI::UpgradeType::mineralPrice | ( | int | level = 1 | ) | const |
Returns the mineral price for the first upgrade.


| int BWAPI::UpgradeType::mineralPriceFactor | ( | ) | const |
Returns the amount that the mineral price increases for each additional upgrade.


| int BWAPI::UpgradeType::upgradeTime | ( | int | level = 1 | ) | const |
Returns the number of frames needed to research the first upgrade.


| int BWAPI::UpgradeType::upgradeTimeFactor | ( | ) | const |
Returns the number of frames that the upgrade time increases for each additional upgrade.


| UnitType BWAPI::UpgradeType::whatsRequired | ( | int | level = 1 | ) | const |
Returns the type of unit that is additionally required for the upgrade.

| UnitType BWAPI::UpgradeType::whatUpgrades | ( | ) | const |
Returns the type of unit that researches the upgrade.


| const std::set< UnitType > & BWAPI::UpgradeType::whatUses | ( | ) | const |
Returns the set of units that are affected by this upgrade.


1.7.6.1