Game Development Community

Sorted Set

by Tejaswin · in Torque Game Builder · 08/05/2010 (10:23 am) · 3 replies

Hi,

Is there anything like the STL Set (like in C++), which is a Sorted container. I need to make a Priority Queue which contains objects and depending on the objects member, I have to sort and flush the queue from starting.

Is the SimSet an sorted set?

Thanks in advance,
Tejaswin.

#1
08/05/2010 (11:19 am)

http://www.torquepowered.com/community/forums/viewthread/112443


I have no idea what a STL set is, but you can easily sort the objects in a simset to make a queue.
#2
08/05/2010 (11:22 am)
methods you might be interested in:

reorderChild(child1, child2);

bringToFront(object);

pushToBack(object);
#3
08/05/2010 (11:40 am)
Thank you Aditya.