1.1 --- a/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sat Jul 14 00:36:43 2012 +0400
1.2 +++ b/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sat Jul 14 02:07:51 2012 +0400
1.3 @@ -9,13 +9,11 @@
1.4 */
1.5 public class Cell {
1.6
1.7 - protected int x;
1.8 - protected int y;
1.9 + protected Coordinate coordinate;
1.10 protected CellContent content;
1.11
1.12 - public Cell(int x, int y, CellContent content) {
1.13 - this.x = x;
1.14 - this.y = y;
1.15 + public Cell(Coordinate coordinate, CellContent content) {
1.16 + this.coordinate = coordinate;
1.17 this.content = content;
1.18 }
1.19
1.20 @@ -27,12 +25,8 @@
1.21 this.content = content;
1.22 }
1.23
1.24 - public int getX() {
1.25 - return x;
1.26 - }
1.27 -
1.28 - public int getY() {
1.29 - return y;
1.30 + public Coordinate getCoordinate() {
1.31 + return coordinate;
1.32 }
1.33
1.34 }