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

Function findAndRemoveType

bwapi/TestAIModule/Source/TestMap1.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 BWAssert(false);\
21}
22void findAndRemoveType(Unitset &s, UnitType t)
23{
24 auto it = std::find_if(s.begin(), s.end(), BWAPI::Filter::GetType == t);
25 if (it != s.end())
26 {
27 s.erase(it);
28 }
29 else
30 {
31 BWAssert(false);
32 }
33}
34
35void TestMap1::onStart()
36{

Callers 1

onStartMethod · 0.85

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected