merge track into game and fix in initphase

This commit is contained in:
romanschenk37
2022-03-18 10:19:23 +01:00
parent 5ec7260b1e
commit a723ea16ec
4 changed files with 10 additions and 10 deletions
@@ -1,6 +1,7 @@
package ch.zhaw.pm2.racetrack.given;
import ch.zhaw.pm2.racetrack.PositionVector;
import ch.zhaw.pm2.racetrack.PositionVectorNotValid;
import java.util.List;
@@ -18,11 +19,11 @@ public interface GameSpecification {
int getWinner();
void doCarTurn(PositionVector.Direction acceleration);
void doCarTurn(PositionVector.Direction acceleration) throws PositionVectorNotValid;
void switchToNextActiveCar();
List<PositionVector> calculatePath(PositionVector startPosition, PositionVector endPosition);
boolean willCarCrash(int carIndex, PositionVector position);
boolean willCarCrash(int carIndex, PositionVector position) throws PositionVectorNotValid;
}