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

Method supplyTotal

bwapi/Shared/PlayerShared.cpp:69–77  ·  view source on GitHub ↗

--------------------------------------------- SUPPLY TOTAL -----------------------------------------------

Source from the content-addressed store, hash-verified

67 }
68 //--------------------------------------------- SUPPLY TOTAL -----------------------------------------------
69 int PlayerImpl::supplyTotal(Race race) const
70 {
71 if ( race == Races::None ) // Get current race's supply if None is specified
72 race = this->getRace();
73
74 if (static_cast<unsigned>(race) < std::extent<decltype(self->supplyTotal)>::value)
75 return self->supplyTotal[race];
76 return 0;
77 }
78 //--------------------------------------------- SUPPLY USED ------------------------------------------------
79 int PlayerImpl::supplyUsed(Race race) const
80 {

Callers 2

canMakeFunction · 0.80
onStartMethod · 0.80

Calls 1

getRaceMethod · 0.95

Tested by 1

onStartMethod · 0.64