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

Method HasRadioLinkWithDock

src/Ext/Techno/Body.cpp:138–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool 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.
152void TechnoExt::SyncInvulnerability(TechnoClass* pFrom, TechnoClass* pTo)

Callers

nothing calls this directly

Calls 1

GetTechnoTypeMethod · 0.80

Tested by

no test coverage detected