Add documentation and fix Javadoc warnings

* Describe the aim of the interfaces
* Explain what are the box inherited from Box
* Fix Javadoc warnings by specifying the parameters and returns of the
  methods in the interfaces
This commit is contained in:
regar42 committed 2017-12-10 15:27:57 +01:00
1 parent 8db8b3faad
commit 4d1d3b39a2
10 files changed
+103 -16

No files matched your search

+3
View File
@@ -1,5 +1,8 @@
package maze;
/**
* <code>ABox</code> is an arrival <code>Box</code>. It's the last <code>Box</code> to be walked through and it's an exit to the <code>Maze</code>.
*/
public class ABox extends Box{
public ABox (String label, int x, int y, Maze maze) {
+4
View File
@@ -1,5 +1,9 @@
package maze;
/**
* A <code>DBox</code> is the <code>Box</code> on which the user is first in the <code>Maze</code>.
*/
public class DBox extends Box{
public DBox (String label, int x, int y, Maze maze) {
+4
View File
@@ -1,5 +1,9 @@
package maze;
/**
* An <code>EBox</code> is a <code>Box</code> that can be walked through (an empty box).
*/
public class EBox extends Box{
+1
View File
@@ -94,6 +94,7 @@ public class Maze
/**Constructs the maze from a text file, according to each single character on each line.
* @param filename
* The path to the file containing the representation of the maze.
*/
public final void initFromTextFile(String filename) {
+4
View File
@@ -1,5 +1,9 @@
package maze;
/**
* A <code>WBox</code> is a <code>Box</code> that can't be walked through (a wall).
*/
public class WBox extends Box {