equal
deleted
inserted
replaced
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 } |