refactoring several classes
This commit is contained in:
1 parent
bc0dd52360
commit
a143a9c7d7
10 files changed
+123
-103
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package ch.zhaw.pm2.racetrack.given;
|
||||
|
||||
import ch.zhaw.pm2.racetrack.PositionVector;
|
||||
import ch.zhaw.pm2.racetrack.PositionVectorNotValid;
|
||||
import ch.zhaw.pm2.racetrack.PositionVectorNotValidException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -19,11 +19,11 @@ public interface GameSpecification {
|
||||
|
||||
int getWinner();
|
||||
|
||||
void doCarTurn(PositionVector.Direction acceleration) throws PositionVectorNotValid;
|
||||
void doCarTurn(PositionVector.Direction acceleration) throws PositionVectorNotValidException;
|
||||
|
||||
void switchToNextActiveCar();
|
||||
|
||||
List<PositionVector> calculatePath(PositionVector startPosition, PositionVector endPosition);
|
||||
|
||||
boolean willCarCrash(int carIndex, PositionVector position) throws PositionVectorNotValid;
|
||||
boolean willCarCrash(int carIndex, PositionVector position) throws PositionVectorNotValidException;
|
||||
}
|
||||
Reference in new issue
Block a user