Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map <Unit, UnitInfo>& UnitTrackerClass::getAllyUnitsFilter(UnitType type)
- {
- map<Unit, UnitInfo> returnValues;
- for (auto &u : allyUnits)
- {
- UnitInfo &unit = u.second;
- if (unit.getType() == type)
- {
- returnValues[unit.unit()] = unit;
- }
- }
- Broodwar << returnValues.size() << endl;
- return returnValues;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement