|
|
@ -1,9 +1,11 @@
|
|
|
|
|
|
|
|
// ReSharper disable All
|
|
|
|
namespace QwirkleClassLibrary;
|
|
|
|
namespace QwirkleClassLibrary;
|
|
|
|
|
|
|
|
|
|
|
|
public class Cell
|
|
|
|
public class Cell
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private int x;
|
|
|
|
private int x;
|
|
|
|
private int y;
|
|
|
|
private int y;
|
|
|
|
|
|
|
|
private Tile? tile = null;
|
|
|
|
|
|
|
|
|
|
|
|
public Cell(int x, int y)
|
|
|
|
public Cell(int x, int y)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -12,13 +14,28 @@ public class Cell
|
|
|
|
Console.WriteLine("Cell (" + x + ", " + y + ") created");
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|