diff --git a/src/main/java/latice/model/Position.java b/src/main/java/latice/model/Position.java new file mode 100644 index 0000000..d92c44a --- /dev/null +++ b/src/main/java/latice/model/Position.java @@ -0,0 +1,21 @@ +package latice.model; + +public class Position { + private final Integer row; + private final Integer column; + + public Position(Integer row, Integer column) { + this.row = row; + this.column = column; + } + + public Integer getRow() { + return row; + } + + public Integer getColumn() { + return column; + } + + +} diff --git a/src/main/java/latice/model/Tile.java b/src/main/java/latice/model/Tile.java index b2ff117..5ded38a 100644 --- a/src/main/java/latice/model/Tile.java +++ b/src/main/java/latice/model/Tile.java @@ -3,12 +3,17 @@ package latice.model; public class Tile { private final Color color; private final Shape shape; + private Position position; public Tile(Color color, Shape shape) { this.color = color; this.shape = shape; } + public void setPosition(Position position) { + this.position = position; + } + public Color getColor() { return this.color; } @@ -16,4 +21,8 @@ public class Tile { public Shape getShape() { return this.shape; } + + public Position getPosition() { + return this.position; + } }