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; namespace Models;
public class Cell : Position public class Cell
{ {
private Position pos;
private int value; private int value;
public int Value private string type;
{
get => value;
set => value = value;
}
private string background; 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