MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / isChildOfGroup

Method isChildOfGroup

Engine/source/console/simObject.cpp:1515–1534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513//-----------------------------------------------------------------------------
1514
1515bool SimObject::isChildOfGroup(SimGroup* pGroup)
1516{
1517 if(!pGroup)
1518 return false;
1519
1520 //if we *are* the group in question,
1521 //return true:
1522 if(pGroup == dynamic_cast<SimGroup*>(this))
1523 return true;
1524
1525 SimGroup* temp = mGroup;
1526 while(temp)
1527 {
1528 if(temp == pGroup)
1529 return true;
1530 temp = temp->mGroup;
1531 }
1532
1533 return false;
1534}
1535
1536//-----------------------------------------------------------------------------
1537

Callers 3

simObject.cppFile · 0.80
onGroupRemoveMethod · 0.80
hideSelectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected