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

Method isResearchAvailable

bwapi/Shared/PlayerShared.cpp:169–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
172 }
173 bool PlayerImpl::isUnitAvailable(UnitType unit) const
174 {
175 return unit.isValid() ? self->isUnitAvailable[unit] : false;

Callers 1

canResearchFunction · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected