Initial commit

This commit is contained in:
romanschenk37
2022-03-04 09:04:12 +01:00
parent 19b297fb03
commit 16d287e273
35 changed files with 1505 additions and 19 deletions
@@ -0,0 +1,15 @@
package ch.zhaw.pm2.racetrack.strategy;
import static ch.zhaw.pm2.racetrack.PositionVector.Direction;
/**
* Do not accelerate in any direction.
*/
public class DoNotMoveStrategy implements MoveStrategy {
@Override
public Direction nextMove() {
// TODO: implementation
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,12 @@
package ch.zhaw.pm2.racetrack.strategy;
import ch.zhaw.pm2.racetrack.PositionVector.Direction;
public class MoveListStrategy implements MoveStrategy {
@Override
public Direction nextMove() {
// TODO: implementation
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,7 @@
package ch.zhaw.pm2.racetrack.strategy;
import static ch.zhaw.pm2.racetrack.PositionVector.Direction;
public interface MoveStrategy {
Direction nextMove();
}
@@ -0,0 +1,15 @@
package ch.zhaw.pm2.racetrack.strategy;
import ch.zhaw.pm2.racetrack.PositionVector.Direction;
/**
* The PathFollowerMoveStrategy class determines the next move based on a file containing points on a path.
*/
public class PathFollowerMoveStrategy implements MoveStrategy {
@Override
public Direction nextMove() {
// TODO: implementation
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,15 @@
package ch.zhaw.pm2.racetrack.strategy;
import ch.zhaw.pm2.racetrack.PositionVector.Direction;
/**
* Let the user decide the next move.
*/
public class UserMoveStrategy implements MoveStrategy {
@Override
public Direction nextMove() {
// TODO: implementation
throw new UnsupportedOperationException();
}
}