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

Method getUpgradeLevel

bwapi/Shared/PlayerShared.cpp:135–138  ·  view source on GitHub ↗

--------------------------------------------- GET UPGRADE LEVEL ------------------------------------------

Source from the content-addressed store, hash-verified

133 }
134 //--------------------------------------------- GET UPGRADE LEVEL ------------------------------------------
135 int PlayerImpl::getUpgradeLevel(UpgradeType upgrade) const
136 {
137 return upgrade.isValid() ? self->upgradeLevel[upgrade] : 0;
138 }
139 //--------------------------------------------- HAS RESEARCHED ---------------------------------------------
140 bool PlayerImpl::hasResearched(TechType tech) const
141 {

Callers 9

canMakeFunction · 0.80
canUpgradeFunction · 0.80
canLoadFunction · 0.80
startMethod · 0.80
updateMethod · 0.80
stopMethod · 0.80
onStartMethod · 0.80
executeMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by 4

startMethod · 0.64
updateMethod · 0.64
stopMethod · 0.64
onStartMethod · 0.64