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

Method PositionUnitTarget

bwapi/BWAPI/Source/BW/PositionUnitTarget.cpp:10–13  ·  view source on GitHub ↗

---------------------------------------------- CONSTRUCTOR -----------------------------------------------

Source from the content-addressed store, hash-verified

8{
9 //---------------------------------------------- CONSTRUCTOR -----------------------------------------------
10 PositionUnitTarget::PositionUnitTarget(const Position& position)
11 : position(position)
12 {
13 }
14 PositionUnitTarget::PositionUnitTarget(int x, int y)
15 : position(static_cast<s16>(x), static_cast<s16>(y))
16 {

Callers

nothing calls this directly

Calls 1

getTargetMethod · 0.45

Tested by

no test coverage detected