Merge branch 'drawShortestPath' into mvc
This commit is contained in:
commit
7c1d136856
12 files changed
+135
-8
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user