Hi all,
I’m using a custom binary tree data structure to store all my game objects.
I want to be able to use the for-each loop to itterate through my binary tree for things like calling the update and render methods on each of the elements.
I think that i can use the Enumeration interface to do this, but i’m not sure how. All the tutorials that I have found seem to be assuming that i’m using the enumeration interface with a class that already implements all the methods needed, so all I can find is -
You have a collection -> Black-Box MAGIC! -> enumeration now works
:-\
Anyone come across this before or have any hints?
Chears, Matt