|
|
|
@ -1,22 +1,16 @@
|
|
|
|
|
namespace Models;
|
|
|
|
|
|
|
|
|
|
public class Cell : Position
|
|
|
|
|
public class Cell
|
|
|
|
|
{
|
|
|
|
|
private Position pos;
|
|
|
|
|
private int value;
|
|
|
|
|
public int Value
|
|
|
|
|
{
|
|
|
|
|
get => value;
|
|
|
|
|
set => value = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string type;
|
|
|
|
|
private string background;
|
|
|
|
|
public string Background
|
|
|
|
|
{
|
|
|
|
|
get => background;
|
|
|
|
|
set => background = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Cell(int x, int y) : base(x, y)
|
|
|
|
|
public Cell(int x, int y)
|
|
|
|
|
{
|
|
|
|
|
pos = new Position(x, y);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetCellType() => type;
|
|
|
|
|
}
|