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

Method cancelTrain

bwapi/BWAPILIB/UnitCommand.cpp:225–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 return UnitCommand{ unit, UnitCommandTypes::Cancel_Addon };
224 }
225 UnitCommand UnitCommand::cancelTrain(Unit unit, int slot)
226 {
227 UnitCommand c{ unit, slot >= 0 ? UnitCommandTypes::Cancel_Train_Slot : UnitCommandTypes::Cancel_Train };
228 c.extra = slot;
229 return c;
230 }
231 UnitCommand UnitCommand::cancelMorph(Unit unit)
232 {
233 return UnitCommand{ unit, UnitCommandTypes::Cancel_Morph };

Callers 1

updateMethod · 0.45

Calls

no outgoing calls

Tested by 1

updateMethod · 0.36