icfp-model/src/main/java/ru/bosony/model/mine/Mine.java
branchCleverSearch
changeset 46 4197f736166a
parent 45 d357a16ee62d
child 50 9530f55e9639
equal deleted inserted replaced
45:d357a16ee62d 46:4197f736166a
    21 /**
    21 /**
    22  * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
    22  * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
    23  *         14.07.2012 2:02:18
    23  *         14.07.2012 2:02:18
    24  * 
    24  * 
    25  */
    25  */
    26 public class Mine implements TextRepresentable {
    26 public class Mine implements TextRepresentable, Cloneable {
    27 
    27 
    28 	protected Cell[][]			cells;
    28 	protected Cell[][]			cells;
    29 	protected int				sizeX;
    29 	protected int				sizeX;
    30 	protected int				sizeY;
    30 	protected int				sizeY;
    31 	protected int				waterLevel							= 0;
    31 	protected int				waterLevel							= 0;
   307 	@Override
   307 	@Override
   308 	public int hashCode() {
   308 	public int hashCode() {
   309 		return toText().hashCode();
   309 		return toText().hashCode();
   310 	}
   310 	}
   311 
   311 
       
   312 	@Override
       
   313 	public Mine clone() throws CloneNotSupportedException {
       
   314 		return new Mine(toText());
       
   315 	}
       
   316 
   312 }
   317 }