diff options
-rw-r--r-- | src/RobotRace.java | 27 | ||||
-rw-r--r-- | src/Terrain.java | 27 |
2 files changed, 27 insertions, 27 deletions
diff --git a/src/RobotRace.java b/src/RobotRace.java index 8a197b7..6495285 100644 --- a/src/RobotRace.java +++ b/src/RobotRace.java @@ -388,33 +388,6 @@ public class RobotRace extends Base { } /** - * Implementation of the terrain. - */ - private class Terrain { - - /** - * Can be used to set up a display list. - */ - public Terrain() { - // code goes here ... - } - - /** - * Draws the terrain. - */ - public void draw() { - // code goes here ... - } - - /** - * Computes the elevation of the terrain at ({@code x}, {@code y}). - */ - public float heightAt(float x, float y) { - return 0; // <- code goes here - } - } - - /** * Main program execution body, delegates to an instance of * the RobotRace implementation. */ diff --git a/src/Terrain.java b/src/Terrain.java new file mode 100644 index 0000000..4b2c366 --- /dev/null +++ b/src/Terrain.java @@ -0,0 +1,27 @@ + +/** + * Implementation of the terrain. + */ +class Terrain { + + /** + * Can be used to set up a display list. + */ + public Terrain() { + // code goes here ... + } + + /** + * Draws the terrain. + */ + public void draw() { + // code goes here ... + } + + /** + * Computes the elevation of the terrain at ({@code x}, {@code y}). + */ + public float heightAt(float x, float y) { + return 0; // <- code goes here + } +} |