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

Method width

bwapi/BWAPILIB/Source/UnitType.cpp:2300–2303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2298 return unitDimensions[this->getID()].down;
2299 }
2300 int UnitType::width() const
2301 {
2302 return this->dimensionLeft() + 1 + this->dimensionRight();
2303 }
2304 int UnitType::height() const
2305 {
2306 return this->dimensionUp() + 1 + this->dimensionDown();

Callers 3

maxUnitWidthMethod · 0.45
TEST_CLASSFunction · 0.45
TEST_METHODFunction · 0.45

Calls 2

dimensionLeftMethod · 0.95
dimensionRightMethod · 0.95

Tested by 2

TEST_CLASSFunction · 0.36
TEST_METHODFunction · 0.36