Add editing functionalities

This commit is contained in:
antograb authored and Sylvain Rager (regar42) committed 2018-01-02 22:07:42 +01:00
1 parent 81df80e7ea
commit 43feeaf93f
9 files changed
+298 -16

No files matched your search

+6
View File
@@ -42,6 +42,12 @@ public class Maze
this.maze = matrixDeepCopy(boxes);
}
public Maze(Box[][] newMaze) {
this.dimensionX = newMaze[0].length;
this.dimensionY = newMaze.length;
this.maze = matrixDeepCopy(newMaze);
}
private Box[][] matrixDeepCopy (Box[][] original) {
int numberOfLines = 0;
int numberOfRows = 0;