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

Method getTargetPosition

bwapi/BWAPILIB/UnitCommand.cpp:287–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 return target;
286 }
287 Position UnitCommand::getTargetPosition() const
288 {
289 if (type == UnitCommandTypes::Build ||
290 type == UnitCommandTypes::Land ||
291 type == UnitCommandTypes::Place_COP)
292 return Position(TilePosition(x,y));
293 return Position(x,y);
294 }
295 TilePosition UnitCommand::getTargetTilePosition() const
296 {
297 if (type == UnitCommandTypes::Build ||

Callers 3

RunJunkYardDogMethod · 0.45
addMethod · 0.45
flushMethod · 0.45

Calls 1

PositionClass · 0.50

Tested by

no test coverage detected