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:
10 files changed
+103
-16
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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{
|
||||
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user