Ejemplo n.º 1
0
 private CellGraphicalImplementation[,] GenerateArrayCellImplementations()
 {
     CellGraphicalImplementation[,] testCellImplementations = new CellGraphicalImplementation[8, 8];
     for (int i = 0; i < 8; i++)
     {
         for (int j = 0; j < 8; j++)
         {
             testCellImplementations[i, j] = new TestCellImplementation();
         }
     }
     return(testCellImplementations);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="x">Cell x coordinate on table</param>
 /// <param name="y">Cell y coordinate on table</param>
 /// <param name="cellGraphicalImplementation"></param>
 public Cell(byte x, byte y, CellGraphicalImplementation cellGraphicalImplementation)
 {
     _graphicalImpl = cellGraphicalImplementation;
     X = x; Y = y;
     _graphicalImpl.SpriteClick += SpriteClick;
 }