Merge branch 'mvc'
Here's the list of functionalities added to the project :
- Add a user interface with black, white, green and red squares to
respectively represent empty, wall, departure and arrival boxes.
- Add a File menu containing :
- A quit option, who takes cares of whether the maze has been
modified or not (*Keystroke : Ctrl-Q*)
- A Load Maze option, which opens a file chooser dialog in order to
load another maze (*Keystroke : Ctrl-O*)
- A Save Maze option in order to save the maze (*Keystroke : Ctrl-S*)
- A Save Maze As option in order to save the maze in a different
location (*Keystroke : Ctrl-Maj-S*)
- A Maze menu containing :
- An option to draw the shortest path, which takes care of whether
a path exists or not
- An option to animate the path drawing, which then waits for the
user input to draw the next step of the maze
- An option to clear the shortest path
- An option to make a new clear maze which opens a dialog containing
two spinners (in order to select the number of lines and rows of
the maze), and an OK button once the user has finished selecting
the dimensions (*Keystroke : Ctrl-N*)
- An option to clear the maze (*Keystroke : Ctrl-D*)
- An option to add a row at the end of the maze
- An option to add a line at the end of the maze
- An option to delete a row at the end of the maze
- An option to delete a line at the end of the maze
- A context menu with :
- Options to toggle the types of boxes
- Options to add/delete a row/line at the given position
- A feature which toggles the box type between wall and empty when you
left-click on the box
This commit was merged in pull request #29.
This commit is contained in:
commit
3520bfc4ce
41 files changed
+1888
-82
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package dijkstra;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* This describes a vertex as seen in graphs (see INF101 course).
|
||||
*
|
||||
@@ -10,4 +12,22 @@ public interface VertexInterface {
|
||||
* @return The label of the element.
|
||||
*/
|
||||
public String getLabel();
|
||||
|
||||
/**
|
||||
* Updates the attribute of the element.
|
||||
* @return The neighbourList of the element.
|
||||
*/
|
||||
public ArrayList<VertexInterface> generateNeighbours();
|
||||
|
||||
/**
|
||||
* Adds all vertexes not in the ASet and candidate for an eventual path.
|
||||
* @param vertex
|
||||
*/
|
||||
public void addCandidate(VertexInterface vertex);
|
||||
|
||||
/**
|
||||
* Returns the list of the candidates for an eventual path.
|
||||
* @return
|
||||
*/
|
||||
public ArrayList<VertexInterface> getCandidates();
|
||||
}
|
||||
Reference in new issue
Block a user