codecleanup MoveListStrategy
This commit is contained in:
parent
bb41595609
commit
48675b0ca5
|
@ -20,10 +20,10 @@ public class MoveListStrategy implements MoveStrategy {
|
||||||
private final List<Direction> moveList;
|
private final List<Direction> moveList;
|
||||||
private int pointer;
|
private int pointer;
|
||||||
|
|
||||||
public MoveListStrategy(String path) throws FileNotFoundException{
|
public MoveListStrategy(File moveListFile) throws FileNotFoundException{
|
||||||
moveList = new ArrayList<>();
|
moveList = new ArrayList<>();
|
||||||
pointer = -1;
|
pointer = -1;
|
||||||
readFile(new File(path));
|
readFile(moveListFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue