use of src.model.gen.RectMaze in project Labyrinthe3d by FauconFan.
the class AlgoBackTracker method buildRect.
public RectMaze buildRect(int size_y, int size_x) {
RectMaze rm;
LineWall[] listWalls;
listWalls = this.buildWalls(size_x, size_y);
rm = new RectMaze(new ContentMazeEgg(new Case[0], listWalls), size_x, size_y);
return (rm);
}
use of src.model.gen.RectMaze in project Labyrinthe3d by FauconFan.
the class MapIntro4 method buildOneSquareLabyrinthe.
private RectMaze buildOneSquareLabyrinthe() {
RectMaze rl;
ArrayList<LineWall> listWalls;
listWalls = new ArrayList<>();
listWalls.add(new LineWall(0, 0, 0, 4));
listWalls.add(new LineWall(7, 4, 7, 0));
listWalls.add(new LineWall(0, 0, 7, 0));
listWalls.add(new LineWall(0, 4, 7, 4));
listWalls.add(new LineWall(1, 0, 1, 3));
listWalls.add(new LineWall(2, 3, 6, 3));
listWalls.add(new LineWall(1, 2, 5, 2));
listWalls.add(new LineWall(5, 2, 5, 1));
listWalls.add(new LineWall(5, 1, 2, 1));
listWalls.add(new LineWall(6, 3, 6, 1));
rl = new RectMaze(new ContentMazeEgg(new Case[0], listWalls.toArray(new LineWall[0])), 7, 4);
return (rl);
}
use of src.model.gen.RectMaze in project Labyrinthe3d by FauconFan.
the class MapIntro7 method buildOneSquareLabyrinthe.
private RectMaze buildOneSquareLabyrinthe() {
RectMaze rl;
ArrayList<LineWall> listWalls;
listWalls = new ArrayList<>();
listWalls.add(new LineWall(0, 0, 0, 7));
listWalls.add(new LineWall(size_y, 7, size_y, 0));
listWalls.add(new LineWall(0, 0, size_y, 0));
listWalls.add(new LineWall(0, 7, size_y, 7));
listWalls.add(new LineWall(1, 0, 1, 2));
listWalls.add(new LineWall(1, 3, 1, 6));
listWalls.add(new LineWall(2, 1, 2, 3));
listWalls.add(new LineWall(2, 4, 2, 6));
listWalls.add(new LineWall(2, 4, 3, 4));
listWalls.add(new LineWall(3, 4, 3, 5));
listWalls.add(new LineWall(3, 2, 3, 3));
listWalls.add(new LineWall(3, 3, size_y - 3, 3));
listWalls.add(new LineWall(4, 4, size_y - 3, 4));
listWalls.add(new LineWall(size_y - 2, 5, size_y - 2, 2));
listWalls.add(new LineWall(size_y - 2, 2, 3, 2));
listWalls.add(new LineWall(1, 6, size_y - 1, 6));
listWalls.add(new LineWall(1, 3, 2, 3));
listWalls.add(new LineWall(size_y - 1, 2, size_y - 1, 6));
listWalls.add(new LineWall(size_y, 1, 2, 1));
listWalls.add(new LineWall(size_y - 2, 5, 3, 5));
rl = new RectMaze(new ContentMazeEgg(new Case[0], listWalls.toArray(new LineWall[0])), size_y, 7);
return (rl);
}
Aggregations