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

Method follow

bwapi/BWAPILIB/UnitCommand.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 return c;
111 }
112 UnitCommand UnitCommand::follow(Unit unit, Unit target, bool shiftQueueCommand)
113 {
114 UnitCommand c{ unit, UnitCommandTypes::Follow };
115 c.target = target;
116 c.extra = shiftQueueCommand ? 1 : 0;
117 return c;
118 }
119 UnitCommand UnitCommand::gather(Unit unit, Unit target, bool shiftQueueCommand)
120 {
121 UnitCommand c{ unit, UnitCommandTypes::Gather };

Callers 2

DoUnitBehaviourMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by 1

updateMethod · 0.36