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

+11
View File
@@ -3,6 +3,7 @@ package ui;
import javax.swing.*;
import maze.Maze;
import model.MazeAppModel;
import maze.EBox;
import java.util.Observable;
import java.util.Observer;
@@ -76,4 +77,14 @@ public class MazeApp extends JFrame
public void windowOpened(WindowEvent e) {
return;
}
public void drawShortestPath() {
mazeAppModel.setPathDrawn(true);
windowPanel.paintShortestPath();
}
public void clearShortestPath() {
mazeAppModel.setPathDrawn(false);
this.repaint();
}
}