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

Method advanceObjects

Engine/source/T3D/gameBase/processList.cpp:259–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257//----------------------------------------------------------------------------
258
259void ProcessList::advanceObjects()
260{
261 PROFILE_START(ProcessList_AdvanceObjects);
262
263 // A little link list shuffling is done here to avoid problems
264 // with objects being deleted from within the process method.
265 ProcessObject list;
266 list.plLinkBefore(mHead.mProcessLink.next);
267 mHead.plUnlink();
268 for (ProcessObject * pobj = list.mProcessLink.next; pobj != &list; pobj = list.mProcessLink.next)
269 {
270 pobj->plUnlink();
271 pobj->plLinkBefore(&mHead);
272
273 onTickObject(pobj);
274 }
275
276 mTotalTicks++;
277
278 PROFILE_END();
279}
280
281ProcessObject* ProcessList::findNearestToEnd(Vector<ProcessObject*>& objs) const
282{

Callers

nothing calls this directly

Calls 2

plLinkBeforeMethod · 0.80
plUnlinkMethod · 0.80

Tested by

no test coverage detected