MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / IsDesignator

Method IsDesignator

src/Ext/SWType/SWHelpers.cpp:91–97  ·  view source on GitHub ↗

Designators check

Source from the content-addressed store, hash-verified

89
90// Designators check
91bool SWTypeExt::ExtData::IsDesignator(HouseClass* pOwner, TechnoClass* pTechno) const
92{
93 if (pTechno->Owner == pOwner && pTechno->IsAlive && pTechno->Health && !pTechno->InLimbo && !pTechno->Deactivated)
94 return this->SW_AnyDesignator || this->SW_Designators.Contains(pTechno->GetTechnoType());
95
96 return false;
97}
98
99bool SWTypeExt::ExtData::IsDesignatorEligible(HouseClass* pOwner, const CellStruct& coords, TechnoClass* pTechno) const
100{

Callers 1

IsDesignatorEligibleMethod · 0.95

Calls 2

ContainsMethod · 0.80
GetTechnoTypeMethod · 0.80

Tested by

no test coverage detected