Ejemplo n.º 1
0
 /** Display the maze */
 @Override
 public void displayMaze3d(Maze3d maze, String name) {
   this.setMaze(maze);
   mazeDisplayer.setCharacter(maze.getStartPosition());
   mazeDisplayer.setGoalPosition(maze.getGoalPosition());
   mazeDisplayer.setMazeData(
       maze.getCrossSectionByY(((Position) mazeDisplayer.getCharacter()).getpY()));
   mazeDisplayer.draw(section);
   mazeDisplayer.redraw();
 }
Ejemplo n.º 2
0
 /**
  * Display the cross section (x/y/z)
  *
  * @param arr
  * @param sectionType
  * @param name
  * @param section
  */
 @Override
 public void displayCrossSection(int[][] arr, String sectionType, String name, String section) {
   mazeDisplayer.setMazeData(arr);
   mazeDisplayer.draw(this.section);
   mazeDisplayer.redraw();
 }