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

Method pushBackForce

Engine/source/console/simObjectList.cpp:45–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool SimObjectList::pushBackForce(SimObject* obj)
46{
47 iterator itr = T3D::find(begin(),end(),obj);
48 if (itr == end())
49 {
50 push_back(obj);
51 return true;
52 }
53 else
54 {
55 // Move to the back...
56 //
57 SimObject* pBack = *itr;
58 removeStable(pBack);
59 push_back(pBack);
60 }
61
62 return false;
63}
64
65bool SimObjectList::pushFront(SimObject* obj)
66{

Callers 2

pushObjectMethod · 0.80
_addObjectMethod · 0.80

Calls 3

beginFunction · 0.85
endFunction · 0.85
findFunction · 0.50

Tested by

no test coverage detected