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

Method getMaxUpgradeLevel

bwapi/Shared/PlayerShared.cpp:165–168  ·  view source on GitHub ↗

------------------------------------------------ AVAILABILITY --------------------------------------------

Source from the content-addressed store, hash-verified

163 }
164 //------------------------------------------------ AVAILABILITY --------------------------------------------
165 int PlayerImpl::getMaxUpgradeLevel(UpgradeType upgrade) const
166 {
167 return upgrade.isValid() ? self->maxUpgradeLevel[upgrade] : 0;
168 }
169 bool PlayerImpl::isResearchAvailable(TechType tech) const
170 {
171 return tech.isValid() ? self->isResearchAvailable[tech] : false;

Callers 1

canUpgradeFunction · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected