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

Method canAttack

bwapi/Shared/UnitShared.cpp:653–656  ·  view source on GitHub ↗

--------------------------------------------- CAN ATTACK -------------------------------------------------

Source from the content-addressed store, hash-verified

651 }
652 //--------------------------------------------- CAN ATTACK -------------------------------------------------
653 bool UnitImpl::canAttack(bool checkCommandibility) const
654 {
655 return Templates::canAttack(const_cast<UnitImpl*>(this), checkCommandibility);
656 }
657 bool UnitImpl::canAttack(Position target, bool checkCanTargetUnit, bool checkCanIssueCommandType, bool checkCommandibility) const
658 {
659 return Templates::canAttack(const_cast<UnitImpl*>(this), target, checkCanTargetUnit, checkCanIssueCommandType, checkCommandibility);

Callers 1

executeMethod · 0.45

Calls 1

canAttackFunction · 0.85

Tested by

no test coverage detected