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

Method Tactical_IsHighPriorityInRect

src/Misc/Selection.cpp:60–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 static bool Tactical_IsHighPriorityInRect(TacticalClass* pThis, LTRBStruct* rect)
61 {
62 for (const auto& selected : Array)
63 if (Tactical_IsInSelectionRect(pThis, rect, selected) && ObjectClass_IsSelectable(selected.Object))
64 {
65 if ((selected.Object->AbstractFlags & AbstractFlags::Techno) != AbstractFlags::None)
66 {
67 if (!TechnoExt::ExtMap.Find(static_cast<TechnoClass*>(selected.Object))->TypeExtData->LowSelectionPriority)
68 return true;
69 }
70 }
71
72 return false;
73 }
74
75 // Reversed from Tactical::Select
76 static void Tactical_SelectFiltered(TacticalClass* pThis, LTRBStruct* pRect, callback_type check_callback, bool bPriorityFiltering)

Callers

nothing calls this directly

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected