diff options
Diffstat (limited to 'src/RobotRace.java')
-rw-r--r-- | src/RobotRace.java | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/RobotRace.java b/src/RobotRace.java index 7a7689b..ee8abb5 100644 --- a/src/RobotRace.java +++ b/src/RobotRace.java @@ -1,4 +1,5 @@ +import com.jogamp.opengl.util.texture.Texture; import java.awt.Color; import java.awt.Desktop; import java.awt.KeyEventDispatcher; @@ -169,7 +170,7 @@ public class RobotRace extends Base { } // Initialize the race track - raceTrack = new RaceTrack(); + raceTrack = new RaceTrack(this); // Initialize the camera camera = new Camera(gs, raceTrack, robots); @@ -486,7 +487,23 @@ public class RobotRace extends Base { // reset color gl.glColor3f(0, 0, 0); } - + + public Texture getTorsoTexture() { + return this.torso; + } + + public Texture getHeadTexture() { + return this.head; + } + + public Texture getBrickTexture() { + return this.brick; + } + + public Texture getTrackTexture() { + return this.track; + } + /** * Main program execution body, delegates to an instance of the RobotRace * implementation. |