Search in sources :

Example 1 with RectMaze

use of src.model.gen.RectMaze in project Labyrinthe3d by FauconFan.

the class MapIntro1 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);
}
Also used : LineWall(src.model.board.LineWall) ContentMazeEgg(src.model.gen.ContentMazeEgg) RectMaze(src.model.gen.RectMaze)

Example 2 with RectMaze

use of src.model.gen.RectMaze 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);
}
Also used : LineWall(src.model.board.LineWall) ContentMazeEgg(src.model.gen.ContentMazeEgg) RectMaze(src.model.gen.RectMaze)

Example 3 with RectMaze

use of src.model.gen.RectMaze 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);
}
Also used : LineWall(src.model.board.LineWall) ContentMazeEgg(src.model.gen.ContentMazeEgg) RectMaze(src.model.gen.RectMaze)

Example 4 with RectMaze

use of src.model.gen.RectMaze 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);
}
Also used : LineWall(src.model.board.LineWall) ContentMazeEgg(src.model.gen.ContentMazeEgg) RectMaze(src.model.gen.RectMaze)

Example 5 with RectMaze

use of src.model.gen.RectMaze 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);
}
Also used : LineWall(src.model.board.LineWall) ContentMazeEgg(src.model.gen.ContentMazeEgg) RectMaze(src.model.gen.RectMaze)

Aggregations

LineWall (src.model.board.LineWall)8 RectMaze (src.model.gen.RectMaze)8 ContentMazeEgg (src.model.gen.ContentMazeEgg)7