MCPcopy Create free account
hub / github.com/Blizzard/s2client-api / IsUnit

Class IsUnit

include/sc2api/sc2_unit.h:189–193  ·  view source on GitHub ↗

Determines if the unit matches the unit type.

Source from the content-addressed store, hash-verified

187
188//! Determines if the unit matches the unit type.
189struct IsUnit {
190 IsUnit(UNIT_TYPEID type) : type_(type) {};
191 UNIT_TYPEID type_;
192 bool operator()(const Unit& unit) { return unit.unit_type == type_; };
193};
194
195//! Determines if units matches the unit type.
196struct IsUnits {

Callers 15

OnTestFinishMethod · 0.85
OnTestFinishMethod · 0.85
OnTestFinishMethod · 0.85
OnTestFinishMethod · 0.85
OnStepMethod · 0.85
GetCommandCenterMethod · 0.85
OnTestFinishMethod · 0.85
OnTestFinishMethod · 0.85
CountUnitTypeMethod · 0.85
CountUnitTypeBuildingMethod · 0.85
GetRandomUnitMethod · 0.85
AttackWithUnitTypeMethod · 0.85

Calls

no outgoing calls

Tested by 8

OnTestFinishMethod · 0.68
OnTestFinishMethod · 0.68
OnTestFinishMethod · 0.68
OnTestFinishMethod · 0.68
OnStepMethod · 0.68
GetCommandCenterMethod · 0.68
OnTestFinishMethod · 0.68
OnTestFinishMethod · 0.68