diff options
author | Frank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl> | 2014-01-16 23:32:03 +0100 |
---|---|---|
committer | Frank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl> | 2014-01-16 23:32:03 +0100 |
commit | ce8a83729fc26fea7c1a3ccc9f44ed6ce3b77bc8 (patch) | |
tree | d49163e369e281247d474b2492b4c8533c116b35 | |
parent | c5bb0d2aa600d838b301461fe6968c5e6ff66037 (diff) | |
download | 2iv60-robots-ce8a83729fc26fea7c1a3ccc9f44ed6ce3b77bc8.tar.gz |
Trees are now positioned away from the track.
Small edit in robotrace.java for racetrack funtionallity in terrain.
-rw-r--r-- | src/RobotRace.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/RobotRace.java b/src/RobotRace.java index 66e2594..b634cb2 100644 --- a/src/RobotRace.java +++ b/src/RobotRace.java @@ -208,7 +208,7 @@ public class RobotRace extends Base { camera = new Camera(gs, raceTrack, robots); // Initialize the terrain - terrain = new Terrain(this); + terrain = new Terrain(this, raceTrack); } /** @@ -603,7 +603,7 @@ public class RobotRace extends Base { assert track != null; return track; } - + /** * Main program execution body, delegates to an instance of the RobotRace * implementation. @@ -694,7 +694,7 @@ public class RobotRace extends Base { }; int i = Arrays.asList(trackNumbers).indexOf(e.getKeyCode()); assert i != -1 : "Track number not found for key"; - System.err.println("Changing to track number " + i); + System.err.println("Changing to track number " + i); robotRace.gs.trackNr = i; robotRace.mainWindow.updateElements(); } @@ -719,7 +719,7 @@ public class RobotRace extends Base { } return enableTextures; } - + /** * If pause toggle is requested, check state and update. Otherwise, adjust * global animation time. |