Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

FinalExam Review Spring2006: Understand the Tree

Questions? Answers? Comments? Comments on Questions or Answers?
(Back to Final Exam Review Spring2006)



Lets see if I can write out the tree....

sceneRoot has a child forest, then a next village and a next wolfentry

forest has a child trees; trees has a child treenode, a next treenode and a next treenode

vilage has a child hhouses; hhouses has a child house4, a next house5, a next house6, a next house1, a next house2 and a next house3

wolfentry has a child wolves; wolves has a child wolf1, a next wolf2 and a next wolf3

Did that make any sense at all?

And about part B; am I to insert the sceneRoot.addREMOVEDld(hero) and sceneRoot.addREMOVEDld(wolfretreat) into the code beforehand?


Okay this is my attempt at it, sorry if it's a little messy looking...
Uploaded Image: final-review-scenegraphMYTRY.JPG

PS... I dunno why it's also showing up down there...

lol. Your diagram looks correct to me

The root should have NO Next links coming off it, only REMOVEDld links. (But a cool diagram, all the same!) Mark Guzdial

i think this is how it works
child: ==>
next: –> and |
->


root ==> forest ==> trees ==> treenode –> treenode –> treenode
|
-> village ==> hhouses ==> house1 –> house2 –> house3 –> vhouses ==> house4 –> house5 –> house6
|
-> wolfentry ==> wolves ==> wolf1 –> wolf2 –> wolf3
|
-> hero ==> heronode –> wolfretreat ==> wolves ==> wolf1 –> wolf2 –> wolf3

i am not 100% on the hero and wolfretreat because i do not know how they are added, i just guessed that hero would be a 'child' of root and wolfretreat would have been a 'child' of hero

-jacob

ok, so this did not like my downward next arrows: the village should be next from forset, wolfentry next from village, hero next from wolfentry.
-jacob

There isn't a next coming off of the root. That next is coming from the village over to the wolfentry... yeah.. it's a little messy looking

yeah, the next arrow is just swooping across from village. I'm still pretty sure the diagram is the correct answer.



Link to this Page