Add load maze

This commit is contained in:
antograb committed 2017-12-20 21:05:56 +01:00
1 parent 9d6b6a286f
commit 3cdf425435
10 files changed
+81 -176

No files matched your search

+4 -4
View File
@@ -40,17 +40,17 @@ public class Maze
Box box = maze.getMaze()[line][row];
if (box.isWalkable()) {
if (box.isDeparture()) {
this.maze[line][row] = new DBox(box.getLabel(), box.getX(), box.getY(), this);
this.maze[line][row] = new DBox(box.getLabel(), box.getY(), box.getX(), this);
}
else if (box.isArrival()) {
this.maze[line][row] = new ABox(box.getLabel(), box.getX(), box.getY(), this);
this.maze[line][row] = new ABox(box.getLabel(), box.getY(), box.getX(), this);
}
else {
this.maze[line][row] = new EBox(box.getLabel(), box.getX(), box.getY(), this);
this.maze[line][row] = new EBox(box.getLabel(), box.getY(), box.getX(), this);
}
}
else {
this.maze[line][row] = new WBox(box.getLabel(), box.getX(), box.getY(), this);
this.maze[line][row] = new WBox(box.getLabel(), box.getY(), box.getX(), this);
}
}
}