Add maze in Model, then modify UI methods using maze.

This commit is contained in:
antograb committed 2017-12-14 09:54:46 +01:00
1 parent 94f4ab4e5a
commit 892d7e6ff3
7 files changed
+31 -20

No files matched your search

+3 -4
View File
@@ -7,13 +7,12 @@ import java.awt.*;
public class WindowPanel extends JPanel
{
private final DrawingPanelGrid drawingPanelGrid;
private Maze maze;
public WindowPanel(MazeApp mazeApp, Maze maze)
{
public WindowPanel(MazeApp mazeApp) {
setLayout(new BorderLayout());
add(drawingPanelGrid = new DrawingPanelGrid(mazeApp, maze), BorderLayout.CENTER);
add(drawingPanelGrid = new DrawingPanelGrid(mazeApp), BorderLayout.CENTER);
}
}