icfp-model/src/main/java/ru/bosony/model/mine/Cell.java
branchindvdum
changeset 7 251961e44b5f
parent 6 0dbbc8983926
child 22 a46d0179df7a
equal deleted inserted replaced
6:0dbbc8983926 7:251961e44b5f
     7  *         13.07.2012 22:10:18
     7  *         13.07.2012 22:10:18
     8  * 
     8  * 
     9  */
     9  */
    10 public class Cell {
    10 public class Cell {
    11 
    11 
    12 	protected int			x;
    12 	protected Coordinate	coordinate;
    13 	protected int			y;
       
    14 	protected CellContent	content;
    13 	protected CellContent	content;
    15 
    14 
    16 	public Cell(int x, int y, CellContent content) {
    15 	public Cell(Coordinate coordinate, CellContent content) {
    17 		this.x = x;
    16 		this.coordinate = coordinate;
    18 		this.y = y;
       
    19 		this.content = content;
    17 		this.content = content;
    20 	}
    18 	}
    21 
    19 
    22 	public CellContent getContent() {
    20 	public CellContent getContent() {
    23 		return content;
    21 		return content;
    25 
    23 
    26 	public void setContent(CellContent content) {
    24 	public void setContent(CellContent content) {
    27 		this.content = content;
    25 		this.content = content;
    28 	}
    26 	}
    29 
    27 
    30 	public int getX() {
    28 	public Coordinate getCoordinate() {
    31 		return x;
    29 		return coordinate;
    32 	}
       
    33 
       
    34 	public int getY() {
       
    35 		return y;
       
    36 	}
    30 	}
    37 
    31 
    38 }
    32 }