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

Method getGroundWeaponCooldown

bwapi/BWAPI/Source/BW/CUnit.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 animState == BW::Anims::AirAttkInit) && this->orderTarget.pUnit != nullptr;
41 }
42 int CUnit::getGroundWeaponCooldown() const
43 {
44 const BWAPI::UnitType type = this->type();
45 if (type == BWAPI::UnitTypes::Protoss_Reaver || type == BWAPI::UnitTypes::Hero_Warbringer)
46 {
47 return this->mainOrderTimer;
48 }
49 return getDamageDealer()->groundWeaponCooldown;
50 }
51 int CUnit::getAirWeaponCooldown() const
52 {
53 return getDamageDealer()->airWeaponCooldown;

Callers 2

updateDataMethod · 0.45
Filters.cppFile · 0.45

Calls 1

typeMethod · 0.95

Tested by

no test coverage detected