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

Method train

bwapi/BWAPILIB/UnitCommand.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 return c;
49 }
50 UnitCommand UnitCommand::train(Unit unit, UnitType type)
51 {
52 UnitCommand c{ unit, UnitCommandTypes::Train };
53 c.extra = type;
54 return c;
55 }
56 UnitCommand UnitCommand::morph(Unit unit, UnitType type)
57 {
58 UnitCommand c{ unit, UnitCommandTypes::Morph };

Callers 7

DoUnitBehaviourMethod · 0.45
mainFunction · 0.45
onFrameMethod · 0.45
startMethod · 0.45
onFrameMethod · 0.45
startMethod · 0.45
onFrameMethod · 0.45

Calls

no outgoing calls

Tested by 4

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