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

Method drawLine

bwapi/BWAPI/Source/BWAPI/GameDrawing.cpp:188–192  ·  view source on GitHub ↗

-------------------------------------------------- DRAW LINE ---------------------------------------------

Source from the content-addressed store, hash-verified

186 }
187 //-------------------------------------------------- DRAW LINE ---------------------------------------------
188 void GameImpl::drawLine(CoordinateType::Enum ctype, int x1, int y1, int x2, int y2, Color color)
189 {
190 if (!inScreen(ctype,x1,y1,x2,y2)) return;
191 addShape(BWAPIC::Shape(BWAPIC::ShapeType::Line,ctype,x1,y1,x2,y2,0,0,color,false));
192 }
193 //--------------------------------------------------- HAS GUI ----------------------------------------------
194 bool GameImpl::isGUIEnabled() const
195 {

Callers

nothing calls this directly

Calls 1

ShapeClass · 0.85

Tested by

no test coverage detected