Merge branch 'boxTypeEdition' into mvc and cleanup
* Merge branch 'boxTypeEdition' into mvc * Remove some useless spaces and blank lines
This commit was merged in pull request #18.
This commit is contained in:
12 files changed
+158
-13
No files matched your search
@@ -1,11 +1,20 @@
|
||||
package model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Observable;
|
||||
|
||||
import dijkstra.VertexInterface;
|
||||
import dijkstra.Dijkstra;
|
||||
|
||||
public class MazeAppModel extends Observable {
|
||||
|
||||
private Maze maze = new Maze("data/labyrinthe.txt");
|
||||
private boolean modified = false;
|
||||
private Maze maze = new Maze("data/labyrinthe.txt");
|
||||
private VertexInterface departure = maze.getDeparture();
|
||||
private VertexInterface arrival = maze.getArrival();
|
||||
private Previous previous = (Previous) Dijkstra.dijkstra(maze, departure);
|
||||
private ArrayList<VertexInterface> shortest = previous.getShortestPathTo(arrival);
|
||||
private ArrayList<VertexInterface> boxList = maze.getVertexes();
|
||||
private Boolean modified = false;
|
||||
|
||||
public void setMaze(Maze maze) {
|
||||
this.maze = maze;
|
||||
|
||||
Reference in new issue
Block a user