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

Method supplyUsed

bwapi/Shared/PlayerShared.cpp:79–87  ·  view source on GitHub ↗

--------------------------------------------- SUPPLY USED ------------------------------------------------

Source from the content-addressed store, hash-verified

77 }
78 //--------------------------------------------- SUPPLY USED ------------------------------------------------
79 int PlayerImpl::supplyUsed(Race race) const
80 {
81 if ( race == Races::None ) // Get current race's supply if None is specified
82 race = this->getRace();
83
84 if (static_cast<unsigned>(race) < std::extent<decltype(self->supplyUsed)>::value)
85 return self->supplyUsed[race];
86 return 0;
87 }
88 //--------------------------------------------- ALL UNIT COUNT ---------------------------------------------
89 int PlayerImpl::allUnitCount(UnitType unit) const
90 {

Callers 15

canMakeFunction · 0.80
onStartMethod · 0.80
onFrameMethod · 0.80
startMethod · 0.80
updateMethod · 0.80
stopMethod · 0.80
startMethod · 0.80
updateMethod · 0.80
startMethod · 0.80
updateMethod · 0.80
stopMethod · 0.80
startMethod · 0.80

Calls 1

getRaceMethod · 0.95

Tested by 15

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