1 package ru.bosony.model.mine;
3 import ru.bosony.model.cellscontents.CellContent;
4 import ru.bosony.model.moving.Coordinate;
7 * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
11 public class Cell implements Cloneable {
13 protected Coordinate coordinate;
14 protected CellContent content;
16 public Cell(Coordinate coordinate, CellContent content) {
17 this.coordinate = coordinate;
18 this.content = content;
21 public CellContent getContent() {
25 public void setContent(CellContent content) {
26 this.content = content;
29 public Coordinate getCoordinate() {
34 protected Cell clone() throws CloneNotSupportedException {
35 Cell clone = new Cell(coordinate, content);
40 public String toString() {
41 return "Cell [coordinate=" + coordinate + ", content=" + content + "]";