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

Method build

bwapi/BWAPILIB/UnitCommand.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 return c;
36 }
37 UnitCommand UnitCommand::build(Unit unit, TilePosition target, UnitType type)
38 {
39 UnitCommand c{ unit, UnitCommandTypes::Build };
40 c.assignTarget(target);
41 c.extra = type;
42 return c;
43 }
44 UnitCommand UnitCommand::buildAddon(Unit unit, UnitType type)
45 {
46 UnitCommand c{ unit, UnitCommandTypes::Build_Addon };

Callers 4

startMethod · 0.45
onFrameMethod · 0.45
startMethod · 0.45
onFrameMethod · 0.45

Calls 1

assignTargetMethod · 0.80

Tested by 3

startMethod · 0.36
onFrameMethod · 0.36
startMethod · 0.36