示例#1
0
文件: Cell.cs 项目: JillyMan/Warship
 public Cell(int x, int y, TypeSurface type = TypeSurface.WATER)
 {
     this.X     = x;
     this.Y     = y;
     this.Type  = type;
     this.Visit = false;
 }
示例#2
0
 public void Hit(int TestX, int TestY, TypeSurface type)
 {
     if (Field[TestY, TestX].Type == TypeSurface.WATER)
     {
         Field[TestY, TestX].Type = type;
     }
 }