diff -r fade486c8eda -r a46d0179df7a icfp-model/src/main/java/ru/bosony/model/mine/Cell.java --- a/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sun Jul 15 02:08:45 2012 +0400 +++ b/icfp-model/src/main/java/ru/bosony/model/mine/Cell.java Sun Jul 15 04:09:14 2012 +0400 @@ -1,13 +1,14 @@ package ru.bosony.model.mine; import ru.bosony.model.cellscontents.CellContent; +import ru.bosony.model.moving.Coordinate; /** * @author indvdum (gotoindvdum[at]gmail[dot]com)
* 13.07.2012 22:10:18 * */ -public class Cell { +public class Cell implements Cloneable { protected Coordinate coordinate; protected CellContent content; @@ -29,4 +30,10 @@ return coordinate; } + @Override + protected Cell clone() throws CloneNotSupportedException { + Cell clone = new Cell(coordinate, content); + return clone; + } + }