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