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

Method SelectAdd

bwapi/BWAPI/Source/BW/OrderTypes.cpp:64–72  ·  view source on GitHub ↗

--------------------------------------- SHIFT SELECT CONSTRUCTOR ---------------------------------------

Source from the content-addressed store, hash-verified

62 }
63 //--------------------------------------- SHIFT SELECT CONSTRUCTOR ---------------------------------------
64 SelectAdd::SelectAdd(int count, const BWAPI::Unit *units)
65 {
66 targCount = 0;
67 for (int i = 0; i < count && i < MAX_SELECTION_COUNT; ++i)
68 {
69 if (units[i])
70 targets[targCount++] = UnitTarget(units[i]);
71 }
72 }
73 SelectAdd::SelectAdd(int count, const BW::CUnit **units)
74 {
75 targCount = 0;

Callers

nothing calls this directly

Calls 1

UnitTargetClass · 0.85

Tested by

no test coverage detected