Exemple #1
0
 public bool TestCellInMaze(Point p)
 {
     Rect r = new Rect(this.coords.X, this.coords.Y, this.coords.X + this.size.X, this.coords.Y + this.size.Y);
     Rect cell = new Rect(p.X, p.Y, this.tunnelWidth, this.tunnelWidth);
     return cell.insideOf(r);
 }