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

FinalExam Review Sp2005: Draw a Wolf Tree

Post Answers, Questions, Comments, etc. here.

(Back to Final Exam Review Sp2005)


//Assemble the base scene
sceneRoot = new Branch();
sceneRoot.addREMOVEDld(forest);
sceneRoot.addREMOVEDld(village);
sceneRoot.addREMOVEDld(wolfentry);
}

Does this tell me that my tree drawing will only show forest, village, and wolfentry?
Yes, as discussed Friday in class. Mark Guzdial


so where's wolfretreat & hero supposed to fit on my tree?
It doesn't, as discussed Friday in class. Mark Guzdial

i bet all the houses should be next links. like horizontal line instead of a bunch of children arrows.

they're children, though.

i know. but the addchild method only adds the first as a child. the rest get next links.
Yes!!!! Mark Guzdial

So other than that, where do hero and wolfretreat go?

he said in class that one of them was a trick and never got attached.
No, both are. And I said it's "kind of a trick." It's perfectly reasonable for setUp() to create parts of data structures that aren't attached to main tree. Mark Guzdial



Link to this Page