forgive me for budding in... and i'm not gonna pretend to understand exactly everything it is that you are trying to accomplish here, but from what little i did read, it appears to me that you are approaching this a lil inside out... or backend first... whatever...
i would define a linked list class as a base class, then derive the game object class from that... this way, everything in the game would be capable of linking to it's parent and children automatically...
if you can... take a look at pages 710 and 714 of OpenGL Game Programming by Hawkins, Aste, LaMotthe...
this sort of relationship and structure is clearly explained in a few really brief paragraphs...
good luck...
--Mike
i would define a linked list class as a base class, then derive the game object class from that... this way, everything in the game would be capable of linking to it's parent and children automatically...
if you can... take a look at pages 710 and 714 of OpenGL Game Programming by Hawkins, Aste, LaMotthe...
this sort of relationship and structure is clearly explained in a few really brief paragraphs...
good luck...
--Mike