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

Method getDamageDealer

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

Source from the content-addressed store, hash-verified

22 return (this->statusFlags & flags) != 0;
23 }
24 const CUnit* CUnit::getDamageDealer() const
25 {
26 if (this->subUnit != nullptr) return this->subUnit;
27 return this;
28 }
29 bool CUnit::isAttacking() const
30 {
31 BW::Anims::Enum animState = BW::Anims::Init;

Callers 2

isAttackingMethod · 0.95
updateDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected