Example #1
0
 public void prepareTiles() {
   grid.saveTiles();
   for (Tile[] array : grid.field) {
     for (Tile tile : array) {
       if (grid.isCellOccupied(tile)) {
         tile.setMergedFrom(null);
       }
     }
   }
 }
Example #2
0
 public void saveUndoState() {
   grid.saveTiles();
   undoScore = score;
 }