1.1 --- a/src/de/uapcore/sudoku/Field.java Sun Jan 27 15:03:57 2013 +0100 1.2 +++ b/src/de/uapcore/sudoku/Field.java Thu Jan 31 18:44:44 2013 +0100 1.3 @@ -92,6 +92,10 @@ 1.4 super.paintChildren(graphics); 1.5 } 1.6 1.7 + public boolean isCellEmpty(int x, int y) { 1.8 + return getCellValue(x, y) == 0; 1.9 + } 1.10 + 1.11 public int getCellValue(int x, int y) { 1.12 return cells[x][y].getValue(); 1.13 } 1.14 @@ -100,6 +104,14 @@ 1.15 cells[x][y].setValue(v); 1.16 } 1.17 1.18 + public void clearCellValue(int x, int y) { 1.19 + setCellValue(x, y, 0); 1.20 + } 1.21 + 1.22 + public void setCellModified(int x, int y, boolean modified) { 1.23 + cells[x][y].setModified(modified); 1.24 + } 1.25 + 1.26 public void setAllCellsModified(boolean modified) { 1.27 for (int x = 0 ; x < 9 ; x++) { 1.28 for (int y = 0 ; y < 9 ; y++) {