Appendix B. Greenfoot API
The Greenfoot API consists of five classes:
Actor methods are available to all actor subclasses.
World methods are available to the world.
Used to communicate with the Greenfoot environment itself.
Provides information about the last mouse event.
For image presentation and manipulation.
Construct a new world.
Act method for the world. Called once per act round.
Add an Actor to the world.
Return the world’s background image.
Return the size of a cell (in pixels).
Return the color at the center of the ...