Search in sources :

Example 6 with LineWall

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

Example 7 with LineWall

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

Example 8 with LineWall

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

Example 9 with LineWall

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

Example 10 with LineWall

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

Aggregations

LineWall (src.model.board.LineWall)18 RectMaze (src.model.gen.RectMaze)8 ContentMazeEgg (src.model.gen.ContentMazeEgg)7 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)2 Group (javafx.scene.Group)2 ContentMaze (src.model.ContentMaze)2 FileInputStream (java.io.FileInputStream)1 Map (java.util.Map)1 Random (java.util.Random)1 AmbientLight (javafx.scene.AmbientLight)1 Image (javafx.scene.image.Image)1 Material (javafx.scene.paint.Material)1 PhongMaterial (javafx.scene.paint.PhongMaterial)1 Box (javafx.scene.shape.Box)1 Line (javafx.scene.shape.Line)1 Case (src.model.board.Case)1 EndCase (src.model.board.EndCase)1 JumpCase (src.model.board.JumpCase)1 SpeedCase (src.model.board.SpeedCase)1