[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.

And another thing.
If you ever get to do 3D stuff and you happen to store/link your Mesh data directly to an Object of type Entity, then I would suggest to also keep a Global List of all Entities; Next to the parent/child structure.

This will be needed to sort the entities' By drawing order.
Just looping through them from the Origin and iterate through each child will cause problems when you are trying to render them to the screen. As some Entities way down in the chain may be required to render Before an entity somewhere High up the chain (Z-ordering and all that).

But this isnt really related to your problem so i'll shut up now :)