示例#1
0
 public MazeBuilder()
 {
     this.algo   = new DepthFirst();
     this.width  = 31;
     this.height = 41;
     this.algo.SetCurrentMaze(new TileMapMaze(width, height));
 }
示例#2
0
 public MazeBuilder SetMazeAlgorithm(IMazeGenAlgorithm algo)
 {
     this.algo = algo as MazeGenAlgorithmBase;
     return(this);
 }