From ddbf666cc83bf615757e9026281c26b826808031 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 10 Mar 2022 15:33:20 +0100 Subject: [PATCH] finished methods getCarPosition, getCarVelocity and get CarID --- src/main/java/ch/zhaw/pm2/racetrack/Game.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/ch/zhaw/pm2/racetrack/Game.java b/src/main/java/ch/zhaw/pm2/racetrack/Game.java index 86a67c4..3e15501 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/Game.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/Game.java @@ -53,8 +53,7 @@ public class Game implements GameSpecification { */ @Override public char getCarId(int carIndex) { - // TODO: implementation - throw new UnsupportedOperationException(); + return track.getCarId(carIndex); } /** @@ -64,8 +63,7 @@ public class Game implements GameSpecification { */ @Override public PositionVector getCarPosition(int carIndex) { - // TODO: implementation - throw new UnsupportedOperationException(); + return track.getCarPos(carIndex); } /** @@ -75,8 +73,7 @@ public class Game implements GameSpecification { */ @Override public PositionVector getCarVelocity(int carIndex) { - // TODO: implementation - throw new UnsupportedOperationException(); + return track.getCarVelocity(carIndex); } /**