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 :)
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 :)