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

Method rightClick

bwapi/BWAPILIB/UnitCommand.cpp:199–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 return c;
198 }
199 UnitCommand UnitCommand::rightClick(Unit unit, Position target, bool shiftQueueCommand)
200 {
201 UnitCommand c{ unit, UnitCommandTypes::Right_Click_Position };
202 c.assignTarget(target);
203 c.extra = shiftQueueCommand ? 1 : 0;
204 return c;
205 }
206 UnitCommand UnitCommand::rightClick(Unit unit, Unit target, bool shiftQueueCommand)
207 {
208 UnitCommand c{ unit, UnitCommandTypes::Right_Click_Unit };

Callers 7

executeMethod · 0.45
mainFunction · 0.45
onFrameMethod · 0.45
startMethod · 0.45
startMethod · 0.45
updateMethod · 0.45
startMethod · 0.45

Calls 1

assignTargetMethod · 0.80

Tested by 5

onFrameMethod · 0.36
startMethod · 0.36
startMethod · 0.36
updateMethod · 0.36
startMethod · 0.36