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

Method getLoadedUnits

bwapi/BWAPILIB/Source/Unitset.cpp:38–47  ·  view source on GitHub ↗

///////////////////////////////////////////////////// sets

Source from the content-addressed store, hash-verified

36 }
37 ////////////////////////////////////////////////////////// sets
38 Unitset Unitset::getLoadedUnits() const
39 {
40 Unitset retSet;
41 for (auto &u : *this)
42 {
43 auto units = u->getLoadedUnits();
44 retSet.insert(units.begin(), units.end());
45 }
46 return retSet;
47 }
48 Unitset Unitset::getInterceptors() const
49 {
50 Unitset retSet;

Callers 3

Military.cppFile · 0.45
HasEnemyTargetMethod · 0.45
DoUnitBehaviourMethod · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected