1.1 --- a/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sun Jul 15 02:08:45 2012 +0400
1.2 +++ b/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sun Jul 15 04:09:14 2012 +0400
1.3 @@ -1,13 +1,14 @@
1.4 package ru.bosony.model.mine;
1.5
1.6 import ru.bosony.model.cellscontents.CellContent;
1.7 +import ru.bosony.model.moving.Coordinate;
1.8
1.9 /**
1.10 * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
1.11 * 13.07.2012 22:10:18
1.12 *
1.13 */
1.14 -public class Cell {
1.15 +public class Cell implements Cloneable {
1.16
1.17 protected Coordinate coordinate;
1.18 protected CellContent content;
1.19 @@ -29,4 +30,10 @@
1.20 return coordinate;
1.21 }
1.22
1.23 + @Override
1.24 + protected Cell clone() throws CloneNotSupportedException {
1.25 + Cell clone = new Cell(coordinate, content);
1.26 + return clone;
1.27 + }
1.28 +
1.29 }