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

Method getUnitType

bwapi/BWAPILIB/UnitCommand.cpp:303–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 return TilePosition(Position(x,y));
302 }
303 UnitType UnitCommand::getUnitType() const
304 {
305 if (type == UnitCommandTypes::Build ||
306 type == UnitCommandTypes::Build_Addon ||
307 type == UnitCommandTypes::Train ||
308 type == UnitCommandTypes::Morph)
309 return UnitType(extra);
310 return UnitTypes::None;
311 }
312 TechType UnitCommand::getTechType() const
313 {
314 if (type == UnitCommandTypes::Research ||

Callers 5

canIssueCommandFunction · 0.80
canIssueCommandGroupedFunction · 0.80
prepareIssueCommandMethod · 0.80
executeCommandMethod · 0.80
issueCommandMethod · 0.80

Calls 1

UnitTypeClass · 0.50

Tested by

no test coverage detected