I have created a public method in a World subclass, and I am unable to call the method from within an Actor subclass method. The error I get is "cannot find symbol".
I have chosen to replicate this problem in a book_scenario: Newtons-Lab-1 in the constructor for the SmoothMover subclass as follows:
I found this inconsistent since I have always been able to call World methods (such as addObject) from within an actor subclass so long as I reference the World object. The problem I am having in my scenario is the same as this one. I am able to call the method directly when I right-click on the World from the drop down box (just as I am able to within the Newtons-Lab-1 scenario), but not able to call it from within an Actor subclass method.
Appreciate the help, Elizabeth
/**
* Default constructor.
*/
public SmoothMover()
{
this(new Vector());
getWorld().sunAndPlanet();
}
