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

Method getUpgradeType

bwapi/BWAPILIB/UnitCommand.cpp:321–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 return TechTypes::None;
320 }
321 UpgradeType UnitCommand::getUpgradeType() const
322 {
323 if (type == UnitCommandTypes::Upgrade)
324 return UpgradeType(extra);
325 return UpgradeTypes::None;
326 }
327 int UnitCommand::getSlot() const
328 {
329 if (type == UnitCommandTypes::Cancel_Train_Slot)

Callers 2

canIssueCommandFunction · 0.80
executeCommandMethod · 0.80

Calls 1

UpgradeTypeClass · 0.50

Tested by

no test coverage detected