diff --git a/Qwirkle/QwirkleClassLibrary/Cell.cs b/Qwirkle/QwirkleClassLibrary/Cell.cs index a3a2120..881598f 100644 --- a/Qwirkle/QwirkleClassLibrary/Cell.cs +++ b/Qwirkle/QwirkleClassLibrary/Cell.cs @@ -1,9 +1,11 @@ +// ReSharper disable All namespace QwirkleClassLibrary; public class Cell { private int x; private int y; + private Tile? tile = null; public Cell(int x, int y) { @@ -12,13 +14,28 @@ public class Cell Console.WriteLine("Cell (" + x + ", " + y + ") created"); } - public int GetX() + public int GetX { - return this.x; + get { return x; } } - public int GetY() + public int GetY { - return this.y; + get { return y; } + } + + public bool IsFree + { + get { return tile == null; } + } + + public Tile? GetTile + { + get { return tile; } + } + + public void SetTile(Tile? addedTile) + { + tile = addedTile; } } \ No newline at end of file