Exemplo n.º 1
0
 public void SetBlockCoordinates(GameGridCell cell)
 {
     Brick1.setBrickCoordinates(cell);
     Brick2.setBrickCoordinates(cell);
     Brick3.setBrickCoordinates(cell);
     Brick4.setBrickCoordinates(cell);
 }
Exemplo n.º 2
0
 public void setBrickCoordinates(GameGridCell cell)
 {
     if (Rect.X == cell.square.X && Rect.Y == cell.square.Y)
     {
         Coordinate = cell.coordinate;
     }
 }
Exemplo n.º 3
0
 public void fillGridCell(GameGridCell cell)
 {
     if (Rect.X == cell.square.X && Rect.Y == cell.square.Y)
     {
         cell.squareFilled = true;
         cell.brick        = Text;
         cell.color        = color;
     }
 }
Exemplo n.º 4
0
 public GameGrid()
 {
     for (int i = 0; i < 19; i++)
     {
         for (int j = 0; j < 10; j++)
         {
             cells[j, i] = new GameGridCell();
         }
     }
 }