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

Method getType

bwapi/Shared/UnitShared.cpp:46–49  ·  view source on GitHub ↗

--------------------------------------------- GET TYPE ---------------------------------------------------

Source from the content-addressed store, hash-verified

44 }
45 //--------------------------------------------- GET TYPE ---------------------------------------------------
46 UnitType UnitImpl::getType() const
47 {
48 return UnitType(self->type);
49 }
50 //--------------------------------------------- GET POSITION -----------------------------------------------
51 Position UnitImpl::getPosition() const
52 {

Callers 15

canBuildHereFunction · 0.45
canMakeFunction · 0.45
canCommandFunction · 0.45
canCommandGroupedFunction · 0.45
canTargetUnitFunction · 0.45
canAttackMoveFunction · 0.45
canAttackMoveGroupedFunction · 0.45
canAttackUnitFunction · 0.45
canAttackUnitGroupedFunction · 0.45
canBuildFunction · 0.45
canBuildAddonFunction · 0.45
canTrainFunction · 0.45

Calls 1

UnitTypeClass · 0.50

Tested by 15

startMethod · 0.36
updateMethod · 0.36
startMethod · 0.36
startMethod · 0.36
onUnitCreateMethod · 0.36
onUnitDestroyMethod · 0.36
onFrameMethod · 0.36
onStartMethod · 0.36
onFrameMethod · 0.36
startMethod · 0.36
startMethod · 0.36
startMethod · 0.36