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:
regar42 committed 2017-12-14 21:53:49 +01:00
1 parent c3e74a20f3
commit e8896556bc
18 files changed
+307 -322

No files matched your search

+7 -12
View File
@@ -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;
}
}