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

#include <UpgradeType.h>

List of all members.

Public Member Functions

 UpgradeType ()
 UpgradeType (int id)
 UpgradeType (const UpgradeType &other)
UpgradeTypeoperator= (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

Constructor & Destructor Documentation


Member Function Documentation

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

Returns the vespene gas price for the first upgrade.

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

Returns the unique ID for this upgrade type.

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

Returns the name for the upgrade type.

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.

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.

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.

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.

Here is the caller graph for this function:

Returns the type of unit that researches the upgrade.

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.


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