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

Method patrol

bwapi/BWAPILIB/UnitCommand.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 return c;
92 }
93 UnitCommand UnitCommand::patrol(Unit unit, Position target, bool shiftQueueCommand)
94 {
95 UnitCommand c{ unit, UnitCommandTypes::Patrol };
96 c.assignTarget(target);
97 c.extra = shiftQueueCommand ? 1 : 0;
98 return c;
99 }
100 UnitCommand UnitCommand::holdPosition(Unit unit, bool shiftQueueCommand)
101 {
102 UnitCommand c{ unit, UnitCommandTypes::Hold_Position };

Callers 2

executeMethod · 0.45
updateMethod · 0.45

Calls 1

assignTargetMethod · 0.80

Tested by 1

updateMethod · 0.36