summaryrefslogtreecommitdiff
path: root/src/Terrain.java
blob: 4b2c3661d5250138c5e582571687f95ef8e92a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
    }
}