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

Method upgradeTimeFactor

bwapi/BWAPILIB/Source/UpgradeType.cpp:291–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 std::max(0, level-1) * this->upgradeTimeFactor();
290 }
291 int UpgradeType::upgradeTimeFactor() const
292 {
293 return defaultTimeCostFactor[this->getID()];
294 }
295 UnitType UpgradeType::whatUpgrades() const
296 {
297 return upgradeInternalWhat::whatUpgrades[this->getID()];

Callers 3

upgradeTimeMethod · 0.95
writeUpgradeInfoFunction · 0.80
updateMethod · 0.80

Calls 1

getIDMethod · 0.45

Tested by 1

updateMethod · 0.64