Add ActionListener for QuitMenuItem
This commit is contained in:
1 parent
892d7e6ff3
commit
d8acf6ebe8
2 files changed
+43
-2
No files matched your search
@@ -5,6 +5,7 @@ import maze.Maze;
|
||||
public class MazeAppModel {
|
||||
|
||||
private Maze maze = new Maze("data/labyrinthe.txt");
|
||||
private boolean modified = false;
|
||||
|
||||
public void setMaze(Maze maze) {
|
||||
this.maze = maze;
|
||||
@@ -13,4 +14,12 @@ public class MazeAppModel {
|
||||
public Maze getMaze() {
|
||||
return maze;
|
||||
}
|
||||
|
||||
public boolean isModified() {
|
||||
return modified;
|
||||
}
|
||||
|
||||
public void saveToFile() {
|
||||
maze.saveToTextFile("data/labyOutput.txt");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user