Example #1
0
 /// <summary>
 /// This Will update the memebrs of the class
 /// for the JSON serilization </summary>
 public void UpdateMembers()
 {
     this.Maze  = this.maze.Maze;
     this.Start = this.maze.Start;
     this.End   = this.maze.End;
     this.Name  = this.maze.Name;
 }
Example #2
0
 /// <summary>
 /// Constructor for the Maze that recevies its sizes</summary>
 /// <param Name="height">Height of the Maze</param>
 /// <param Name="width">Width of the maze</param>
 public _2DMaze(int height, int width)
 {
     this.height = height;
     this.width  = width;
     Start       = new JPosition();
     End         = new JPosition();
     this.grid2D = new Node <T> [height, width];
 }
Example #3
0
 public _2DMaze(_2DMaze <T> maze)
 {
     this.height = maze.GetHeight();
     this.width  = maze.GetWidth();
     Start       = new JPosition(maze.End.Row, maze.End.Col);
     End         = new JPosition(maze.Start.Row, maze.Start.Col);
     for (int i = 0; i < this.height; i++)
     {
         for (int j = 0; j < this.width; j++)
         {
             this.grid2D[i, j] = new Node <T>(i, j, maze.GetValue(i, j));
         }
     }
 }
Example #4
0
 public _2DMaze()
 {
     Start = new JPosition();
     End   = new JPosition();
 }