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

Method ObjectClass_IsSelectable

src/Misc/Selection.cpp:35–41  ·  view source on GitHub ↗

Reversed from Is_Selectable, w/o Select call

Source from the content-addressed store, hash-verified

33
34 // Reversed from Is_Selectable, w/o Select call
35 static bool ObjectClass_IsSelectable(ObjectClass* pThis)
36 {
37 const auto pOwner = pThis->GetOwningHouse();
38 return pOwner && pOwner->IsControlledByCurrentPlayer()
39 && pThis->CanBeSelected() && pThis->CanBeSelectedNow()
40 && !pThis->InLimbo;
41 }
42
43 // Reversed from Tactical::Select
44 static bool Tactical_IsInSelectionRect(TacticalClass* pThis, LTRBStruct* pRect, const TacticalSelectableStruct& selectable)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected