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

Method cloakingTech

bwapi/BWAPILIB/Source/UnitType.cpp:2184–2201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2182 return TechTypes::None;
2183 }
2184 TechType UnitType::cloakingTech() const
2185 {
2186 switch ( *this )
2187 {
2188 case UnitTypes::Enum::Terran_Ghost:
2189 case UnitTypes::Enum::Hero_Alexei_Stukov:
2190 case UnitTypes::Enum::Hero_Infested_Duran:
2191 case UnitTypes::Enum::Hero_Infested_Kerrigan:
2192 case UnitTypes::Enum::Hero_Sarah_Kerrigan:
2193 case UnitTypes::Enum::Hero_Samir_Duran:
2194 return TechTypes::Personnel_Cloaking;
2195 case UnitTypes::Enum::Terran_Wraith:
2196 case UnitTypes::Enum::Hero_Tom_Kazansky:
2197 return TechTypes::Cloaking_Field;
2198 default:
2199 return TechTypes::None;
2200 }
2201 }
2202 const TechType::set& UnitType::abilities() const
2203 {
2204 return unitAbilities::unitTechs[this->getID()];

Callers 3

canCloakFunction · 0.80
canDecloakFunction · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected