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

Method drawEllipse

bwapi/BWAPI/Source/BWAPI/GameDrawing.cpp:176–180  ·  view source on GitHub ↗

------------------------------------------------- DRAW ELIPSE --------------------------------------------

Source from the content-addressed store, hash-verified

174 }
175 //------------------------------------------------- DRAW ELIPSE --------------------------------------------
176 void GameImpl::drawEllipse(CoordinateType::Enum ctype, int x, int y, int xrad, int yrad, Color color, bool isSolid)
177 {
178 if (!inScreen(ctype,x-xrad,y-yrad,x+xrad,y+yrad)) return;
179 addShape(BWAPIC::Shape(BWAPIC::ShapeType::Ellipse,ctype,x,y,0,0,xrad,yrad,color,isSolid));
180 }
181 //--------------------------------------------------- DRAW DOT ---------------------------------------------
182 void GameImpl::drawDot(CoordinateType::Enum ctype, int x, int y, Color color)
183 {

Callers

nothing calls this directly

Calls 1

ShapeClass · 0.85

Tested by

no test coverage detected