| author | indvdum (gotoindvdum[at]gmail[dot]com) |
| Sat, 14 Jul 2012 00:36:43 +0400 | |
| branch | indvdum |
| changeset 6 | 0dbbc8983926 |
| child 7 | 251961e44b5f |
| permissions | -rw-r--r-- |
| indvdum@6 | 1 |
package ru.bosony.model.mine; |
| indvdum@6 | 2 |
|
| indvdum@6 | 3 |
import ru.bosony.model.cellscontents.CellContent; |
| indvdum@6 | 4 |
|
| indvdum@6 | 5 |
/** |
| indvdum@6 | 6 |
* @author indvdum (gotoindvdum[at]gmail[dot]com) <br> |
| indvdum@6 | 7 |
* 13.07.2012 22:10:18 |
| indvdum@6 | 8 |
* |
| indvdum@6 | 9 |
*/ |
| indvdum@6 | 10 |
public class Cell {
|
| indvdum@6 | 11 |
|
| indvdum@6 | 12 |
protected int x; |
| indvdum@6 | 13 |
protected int y; |
| indvdum@6 | 14 |
protected CellContent content; |
| indvdum@6 | 15 |
|
| indvdum@6 | 16 |
public Cell(int x, int y, CellContent content) {
|
| indvdum@6 | 17 |
this.x = x; |
| indvdum@6 | 18 |
this.y = y; |
| indvdum@6 | 19 |
this.content = content; |
| indvdum@6 | 20 |
} |
| indvdum@6 | 21 |
|
| indvdum@6 | 22 |
public CellContent getContent() {
|
| indvdum@6 | 23 |
return content; |
| indvdum@6 | 24 |
} |
| indvdum@6 | 25 |
|
| indvdum@6 | 26 |
public void setContent(CellContent content) {
|
| indvdum@6 | 27 |
this.content = content; |
| indvdum@6 | 28 |
} |
| indvdum@6 | 29 |
|
| indvdum@6 | 30 |
public int getX() {
|
| indvdum@6 | 31 |
return x; |
| indvdum@6 | 32 |
} |
| indvdum@6 | 33 |
|
| indvdum@6 | 34 |
public int getY() {
|
| indvdum@6 | 35 |
return y; |
| indvdum@6 | 36 |
} |
| indvdum@6 | 37 |
|
| indvdum@6 | 38 |
} |