Merge branch 'drawShortestPath' into mvc

This commit is contained in:
regar42 committed 2017-12-28 11:15:11 +01:00
commit 7c1d136856
12 files changed
+135 -8

No files matched your search

+14 -1
View File
@@ -21,7 +21,8 @@ public class MazeAppModel extends Observable {
private Previous previous;
private ArrayList<VertexInterface> shortest;
private ArrayList<VertexInterface> boxList;
private boolean saved = true;
private boolean saved = true;
private boolean pathDrawn = false;
public MazeAppModel() {
maze = new Maze(Maze.emptyMaze(10));
@@ -62,6 +63,18 @@ public class MazeAppModel extends Observable {
return saved;
}
public ArrayList<VertexInterface> getShortest() {
return shortest;
}
public boolean isPathDrawn() {
return pathDrawn;
}
public void setPathDrawn(boolean pathDrawn) {
this.pathDrawn = pathDrawn;
}
public void saveToFile() {
maze.saveToTextFile(filename);
saved = true;