[OOP] Mother-of-all-objects with children (TList)

BlitzMax Forums/BlitzMax Programming/[OOP] Mother-of-all-objects with children (TList)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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