Skip to main content
gamedev.net
🔒 Locked

simple Design problem

Started by Lord_Vader Jun 16, 2007 at 4:02 AM 0 replies 500+ views
Original Post
Lord_Vader
Lord_Vader
Hello guys, I have a bintree and a simple linked list.The linked list holds some data of the tree(specifically diamonds of Roam algorithm). I want to access and manipulate the linked list from the binary tree. Right now I have declared a static instance of the list in the bintree class. I could pass the linked list as an argument to the bintree but I dont think this is a good idea.My question is what is the best method to access the linked list from within the tree.Is the static solution good?Until know it works fine...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.