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

Method maxUnitWidth

bwapi/BWAPILIB/Source/UnitType.cpp:2552–2556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2550 return unitInternal::macroTypeSet;
2551 }
2552 int UnitTypes::maxUnitWidth()
2553 {
2554 static const int maxWidth = (*std::max_element( allUnitTypes().begin(), allUnitTypes().end(), [](const UnitType &a, const UnitType &b){ return a.width() < b.width(); } )).width();
2555 return maxWidth;
2556 }
2557 int UnitTypes::maxUnitHeight()
2558 {
2559 static const int maxHeight = (*std::max_element( allUnitTypes().begin(), allUnitTypes().end(), [](const UnitType &a, const UnitType &b){ return a.height() < b.height(); } )).height();

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
widthMethod · 0.45

Tested by

no test coverage detected