use of src.model.board.LineWall in project Labyrinthe3d by FauconFan.
the class MapIntro2 method buildOneSquareLabyrinthe.
private RectMaze buildOneSquareLabyrinthe() {
RectMaze rl;
ArrayList<LineWall> listWalls;
listWalls = new ArrayList<>();
listWalls.add(new LineWall(0, 0, 0, size_y));
listWalls.add(new LineWall(size_x, size_y, size_x, 0));
listWalls.add(new LineWall(0, 0, size_x, 0));
listWalls.add(new LineWall(0, size_y, size_x, size_y));
listWalls.add(new LineWall(1, 1, size_x, 1));
listWalls.add(new LineWall(1, 1, 1, size_y - 1));
listWalls.add(new LineWall(1, size_y - 1, size_x - 1, size_y - 1));
listWalls.add(new LineWall(size_x - 1, size_y - 1, size_x - 1, 2));
rl = new RectMaze(new ContentMazeEgg(new Case[0], listWalls.toArray(new LineWall[0])), size_x, size_y);
return (rl);
}
use of src.model.board.LineWall in project Labyrinthe3d by FauconFan.
the class MapIntro3 method buildOneSquareLabyrinthe.
private RectMaze buildOneSquareLabyrinthe() {
RectMaze rl;
ArrayList<LineWall> listWalls;
listWalls = new ArrayList<>();
listWalls.add(new LineWall(0, 0, 0, size_y));
listWalls.add(new LineWall(size_x, size_y, size_x, 0));
listWalls.add(new LineWall(0, 0, size_x, 0));
listWalls.add(new LineWall(0, size_y, size_x, size_y));
rl = new RectMaze(new ContentMazeEgg(new Case[0], listWalls.toArray(new LineWall[0])), size_x, size_y);
return (rl);
}
use of src.model.board.LineWall in project Labyrinthe3d by FauconFan.
the class MapIntro5 method buildOneSquareLabyrinthe.
private RectMaze buildOneSquareLabyrinthe() {
RectMaze rl;
ArrayList<LineWall> listWalls;
listWalls = new ArrayList<>();
listWalls.add(new LineWall(0, 0, 0, 6));
listWalls.add(new LineWall(10, 6, 10, 0));
listWalls.add(new LineWall(0, 0, 10, 0));
listWalls.add(new LineWall(0, 6, 10, 6));
listWalls.add(new LineWall(5, 0, 5, 6));
rl = new RectMaze(new ContentMazeEgg(new Case[0], listWalls.toArray(new LineWall[0])), 10, 6);
return (rl);
}
use of src.model.board.LineWall in project Labyrinthe3d by FauconFan.
the class MapIntro6 method buildOneSquareLabyrinthe.
private RectMaze buildOneSquareLabyrinthe() {
RectMaze rl;
ArrayList<LineWall> listWalls;
listWalls = new ArrayList<>();
listWalls.add(new LineWall(0, 0, 0, size_y));
listWalls.add(new LineWall(size_x, size_y, size_x, 0));
listWalls.add(new LineWall(0, 0, size_x, 0));
listWalls.add(new LineWall(0, size_y, size_x, size_y));
rl = new RectMaze(new ContentMazeEgg(new Case[0], listWalls.toArray(new LineWall[0])), size_x, size_y);
return (rl);
}
use of src.model.board.LineWall 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);
}
Aggregations