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

Method canUseTech

bwapi/Shared/UnitShared.cpp:1036–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034 return Templates::canUseTechWithOrWithoutTarget(const_cast<UnitImpl*>(this), tech, checkCanIssueCommandType, checkCommandibility);
1035 }
1036 bool UnitImpl::canUseTech(BWAPI::TechType tech, Unit target, bool checkCanTargetUnit, bool checkTargetsType, bool checkCanIssueCommandType, bool checkCommandibility) const
1037 {
1038 return Templates::canUseTech(const_cast<UnitImpl*>(this), tech, target, checkCanTargetUnit, checkTargetsType, checkCanIssueCommandType, checkCommandibility);
1039 }
1040 bool UnitImpl::canUseTech(BWAPI::TechType tech, Position target, bool checkCanTargetUnit, bool checkTargetsType, bool checkCanIssueCommandType, bool checkCommandibility) const
1041 {
1042 return Templates::canUseTech(const_cast<UnitImpl*>(this), tech, target, checkCanTargetUnit, checkTargetsType, checkCanIssueCommandType, checkCommandibility);

Callers

nothing calls this directly

Calls 1

canUseTechFunction · 0.85

Tested by

no test coverage detected