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

Method allUnitCount

bwapi/Shared/PlayerShared.cpp:89–92  ·  view source on GitHub ↗

--------------------------------------------- ALL UNIT COUNT ---------------------------------------------

Source from the content-addressed store, hash-verified

87 }
88 //--------------------------------------------- ALL UNIT COUNT ---------------------------------------------
89 int PlayerImpl::allUnitCount(UnitType unit) const
90 {
91 return (unit >= 0 && unit < UnitTypes::Enum::MAX) ? self->allUnitCount[unit] : 0;
92 }
93 //--------------------------------------------- VISIBLE UNIT COUNT -----------------------------------------
94 int PlayerImpl::visibleUnitCount(UnitType unit) const
95 {

Callers 10

executeMethod · 0.80
GetStandardUnitCountFunction · 0.80
executeMethod · 0.80
incompleteUnitCountMethod · 0.80
drawStatsFunction · 0.80
startMethod · 0.80
updateMethod · 0.80
stopMethod · 0.80
startMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by 5

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