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