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

Method move

bwapi/BWAPILIB/UnitCommand.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 return c;
85 }
86 UnitCommand UnitCommand::move(Unit unit, Position target, bool shiftQueueCommand)
87 {
88 UnitCommand c{ unit, UnitCommandTypes::Move };
89 c.assignTarget(target);
90 c.extra = shiftQueueCommand ? 1 : 0;
91 return c;
92 }
93 UnitCommand UnitCommand::patrol(Unit unit, Position target, bool shiftQueueCommand)
94 {
95 UnitCommand c{ unit, UnitCommandTypes::Patrol };

Callers 4

executeMethod · 0.45
RunComputerReturnMethod · 0.45
RunJunkYardDogMethod · 0.45
updateMethod · 0.45

Calls 1

assignTargetMethod · 0.80

Tested by 1

updateMethod · 0.36