Designators check
| 89 | |
| 90 | // Designators check |
| 91 | bool 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 | |
| 99 | bool SWTypeExt::ExtData::IsDesignatorEligible(HouseClass* pOwner, const CellStruct& coords, TechnoClass* pTechno) const |
| 100 | { |
no test coverage detected