| 136 | } |
| 137 | |
| 138 | bool TechnoExt::HasRadioLinkWithDock(TechnoClass* pThis) |
| 139 | { |
| 140 | if (pThis->HasAnyLink()) |
| 141 | { |
| 142 | auto const pLink = abstract_cast<BuildingClass*>(pThis->GetNthLink(0)); |
| 143 | |
| 144 | if (pLink && pThis->GetTechnoType()->Dock.FindItemIndex(pLink->Type) >= 0) |
| 145 | return true; |
| 146 | } |
| 147 | |
| 148 | return false; |
| 149 | } |
| 150 | |
| 151 | // Syncs Iron Curtain or Force Shield timer to another techno. |
| 152 | void TechnoExt::SyncInvulnerability(TechnoClass* pFrom, TechnoClass* pTo) |
nothing calls this directly
no test coverage detected