Initial commit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user