Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bwapi/bwapi
/ getRace
Method
getRace
bwapi/BWAPILIB/Source/UnitType.cpp:2066–2069 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2064
}
2065
2066
Race UnitType::getRace() const
2067
{
2068
return unitRaces::unitRace[this->getID()];
2069
}
2070
const std::pair<UnitType, int> UnitType::whatBuilds() const
2071
{
2072
// Retrieve the type
Callers
15
isNeutral
Method · 0.95
canBuildHere
Function · 0.45
canMake
Function · 0.45
canRepair
Function · 0.45
canLoad
Function · 0.45
canUseTechUnit
Function · 0.45
isBeingHealed
Method · 0.45
onStart
Method · 0.45
execute
Method · 0.45
execute
Method · 0.45
writeTechInfo
Function · 0.45
writeUnitInfo
Function · 0.45
Calls
1
getID
Method · 0.45
Tested by
7
onStart
Method · 0.36
start
Method · 0.36
update
Method · 0.36
start
Method · 0.36
start
Method · 0.36
start
Method · 0.36
update
Method · 0.36