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

Method getTechType

bwapi/BWAPILIB/UnitCommand.cpp:312–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 return UnitTypes::None;
311 }
312 TechType UnitCommand::getTechType() const
313 {
314 if (type == UnitCommandTypes::Research ||
315 type == UnitCommandTypes::Use_Tech ||
316 type == UnitCommandTypes::Use_Tech_Position ||
317 type == UnitCommandTypes::Use_Tech_Unit)
318 return TechType(extra);
319 return TechTypes::None;
320 }
321 UpgradeType UnitCommand::getUpgradeType() const
322 {
323 if (type == UnitCommandTypes::Upgrade)

Callers 3

canIssueCommandFunction · 0.80
addMethod · 0.80
executeCommandMethod · 0.80

Calls 1

TechTypeClass · 0.50

Tested by

no test coverage detected