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

Function getUnitName

bwapi/BWScriptEmulator/ScriptEnum.cpp:372–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370 return pszOpcodeName[iOpcode];
371 }
372 const char * const getUnitName(int iUnitType)
373 {
374 int t = iUnitType;
375 if ( t < 0 || t > BWAPI::UnitTypes::None )
376 t = BWAPI::UnitTypes::None;
377 return pszUnitInfo[t].pszScriptUnitName;
378 }
379 Orders::Enum::Enum getUnitIdleOrder(int iUnitType)
380 {
381 int t = iUnitType;

Callers 15

executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
nameMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected