#include <UpgradeType.h>
Public Member Functions | |
| UpgradeType () | |
| UpgradeType (int id) | |
| UpgradeType (const UpgradeType &other) | |
| UpgradeType & | operator= (const UpgradeType &other) |
| operator int () const | |
| int | getID () const |
| std::string | getName () 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 |
| BWAPI::UpgradeType::UpgradeType | ( | int | id | ) |
| BWAPI::UpgradeType::UpgradeType | ( | const UpgradeType & | other | ) |
| 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.

| int BWAPI::UpgradeType::getID | ( | ) | const |
Returns the unique ID for this upgrade type.
| 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.

| BWAPI::UpgradeType::operator int | ( | ) | const |
| UpgradeType& BWAPI::UpgradeType::operator= | ( | const UpgradeType & | other | ) |
| 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