diff -r 0dbbc8983926 -r 251961e44b5f icfp-model/src/main/java/ru/bosony/model/mine/Cell.java --- a/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sat Jul 14 00:36:43 2012 +0400 +++ b/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sat Jul 14 02:07:51 2012 +0400 @@ -9,13 +9,11 @@ */ public class Cell { - protected int x; - protected int y; + protected Coordinate coordinate; protected CellContent content; - public Cell(int x, int y, CellContent content) { - this.x = x; - this.y = y; + public Cell(Coordinate coordinate, CellContent content) { + this.coordinate = coordinate; this.content = content; } @@ -27,12 +25,8 @@ this.content = content; } - public int getX() { - return x; - } - - public int getY() { - return y; + public Coordinate getCoordinate() { + return coordinate; } }