accessing visited field in node class

3 views
Skip to first unread message

Da2002

unread,
Nov 27, 2010, 12:52:50 PM11/27/10
to Cornell CS 2110
when I try to access the visited field in node, it tells me it is not
visible. When I look in the node class, I find no getter or setter for
this field. How come? how do we access this private field and modify
it?

Jack Zhou

unread,
Nov 27, 2010, 12:57:39 PM11/27/10
to cornell...@googlegroups.com
You can't. I'm guessing it's used to keep track of awarded "Exploration" points. You have to find some other way to store your own "visited" data. Hint: Node.setUserData() and Node.getUserData() can be used to store arbitrary objects in a Node.


--
You received this message because you are subscribed to the Google Groups "Cornell CS 2110" group.
To post to this group, send email to cornell...@googlegroups.com.
To unsubscribe from this group, send email to cornell-cs211...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cornell-cs2110?hl=en.


Da2002

unread,
Nov 27, 2010, 1:02:02 PM11/27/10
to Cornell CS 2110
oh i see, thanks!
Reply all
Reply to author
Forward
0 new messages