MCPcopy Create free account
hub / github.com/bwapi/bwapi / upgradeTime

Method upgradeTime

bwapi/BWAPILIB/Source/UpgradeType.cpp:286–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284 return mineralPriceFactor();
285 }
286 int UpgradeType::upgradeTime(int level) const
287 {
288 return defaultTimeCostBase[this->getID()] +
289 std::max(0, level-1) * this->upgradeTimeFactor();
290 }
291 int UpgradeType::upgradeTimeFactor() const
292 {
293 return defaultTimeCostFactor[this->getID()];

Callers 4

writeUpgradeInfoFunction · 0.80
startMethod · 0.80
updateMethod · 0.80
executeMethod · 0.80

Calls 2

upgradeTimeFactorMethod · 0.95
getIDMethod · 0.45

Tested by 2

startMethod · 0.64
updateMethod · 0.64