Add editing functionalities
This commit is contained in:
1 parent
81df80e7ea
commit
43feeaf93f
9 files changed
+298
-16
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user