1st of all, there is a tutorial on this.
Basically, what you do is you do something like this:
WorldName world = (WorldName) getWorld();
world.SomeMethod;
The tutorial is on how to access something in another object, but this is the halfway step.
Since you seem to be a bit new to greenfoot, I suggest you go through all the tutorials. They are extremely helpful and will answer many of your questions.