Ejemplo n.º 1
0
 public Cell(int r, int c, MYCOLOR C, Piece P, int W, int H, int D)
 {
     ri          = r; ci = c;
     clo         = C;
     aP          = P;
     this.Width  = W / D - 9;
     this.Height = H / D - 17;
     if (C == MYCOLOR.BLACK)
     {
         this.BackColor = Color.Gray;
     }
     if (aP != null)
     {
         aP.Draw(this);
     }
 }