import greenfoot.*;  



| A moon.
|
| @author Poul Henriksen
| @author Michael Kölling
|
| @version 1.1
|
public class Moon
extends World
{    

| Gravity on the moon | private double gravity = 1.6;
| Color of the landing platform | private Color landingColor = Color.WHITE;
| Color of the space | private Color spaceColor = Color.BLACK; public Moon() { super(600,600,1); addObject(new Lander(), 326, 100); Explosion.initialiseImages(); }
| Gravity on the moon | public double getGravity() { return gravity; }
| Color of the landing platform | public Color getLandingColor() { return landingColor; }
| Color of the space | public Color getSpaceColor() { return spaceColor; } }
top, use, map, class Moon

.   Moon
.   getGravity
.   getLandingColor
.   getSpaceColor




40 neLoCode + 10 LoComm