Beispiel #1
0
 public Cell(int x, int y, TypeSurface type = TypeSurface.WATER)
 {
     this.X     = x;
     this.Y     = y;
     this.Type  = type;
     this.Visit = false;
 }
Beispiel #2
0
 public void Hit(int TestX, int TestY, TypeSurface type)
 {
     if (Field[TestY, TestX].Type == TypeSurface.WATER)
     {
         Field[TestY, TestX].Type = type;
     }
 }