icfp-model/src/main/java/ru/bosony/model/mine/Cell.java
changeset 22 a46d0179df7a
parent 7 251961e44b5f
child 50 9530f55e9639
equal deleted inserted replaced
21:fade486c8eda 22:a46d0179df7a
     1 package ru.bosony.model.mine;
     1 package ru.bosony.model.mine;
     2 
     2 
     3 import ru.bosony.model.cellscontents.CellContent;
     3 import ru.bosony.model.cellscontents.CellContent;
       
     4 import ru.bosony.model.moving.Coordinate;
     4 
     5 
     5 /**
     6 /**
     6  * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
     7  * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
     7  *         13.07.2012 22:10:18
     8  *         13.07.2012 22:10:18
     8  * 
     9  * 
     9  */
    10  */
    10 public class Cell {
    11 public class Cell implements Cloneable {
    11 
    12 
    12 	protected Coordinate	coordinate;
    13 	protected Coordinate	coordinate;
    13 	protected CellContent	content;
    14 	protected CellContent	content;
    14 
    15 
    15 	public Cell(Coordinate coordinate, CellContent content) {
    16 	public Cell(Coordinate coordinate, CellContent content) {
    27 
    28 
    28 	public Coordinate getCoordinate() {
    29 	public Coordinate getCoordinate() {
    29 		return coordinate;
    30 		return coordinate;
    30 	}
    31 	}
    31 
    32 
       
    33 	@Override
       
    34 	protected Cell clone() throws CloneNotSupportedException {
       
    35 		Cell clone = new Cell(coordinate, content);
       
    36 		return clone;
       
    37 	}
       
    38 
    32 }
    39 }