Normalize code and fix saveToTextFile
* Normalize spaces and blank lines according to Java Code Conventions
from Java SE 8
* Wrap code to 80 characters per line (Java Code Conventions for Java SE
8)
* Fix saveToTextFile() in Maze : same confusion that was fixed in bc1886ca
for initFromTextFile() (x et y coordinates were respectively used as y
and x)
This commit is contained in:
18 files changed
+307
-322
No files matched your search
+7
-12
@@ -1,23 +1,18 @@
|
||||
package maze;
|
||||
|
||||
/**
|
||||
* A <code>WBox</code> is a <code>Box</code> that can't be walked through (a wall).
|
||||
* A <code>WBox</code> is a <code>Box</code>
|
||||
* that can't be walked through (a wall).
|
||||
*/
|
||||
|
||||
public class WBox extends Box {
|
||||
|
||||
|
||||
|
||||
|
||||
public WBox (String label, int x, int y, Maze maze) {
|
||||
|
||||
super(label,x,y,maze) ;
|
||||
|
||||
|
||||
super(label, x, y, maze);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isWalkable() {
|
||||
return false ;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user