Modification de la classe Cell pour implémenter l'interface

pull/45/head
Rémi LAVERGNE 1 year ago
parent bf3f9f3295
commit c7a8f77e01

@ -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;
}
Loading…
Cancel
Save