|
|
@ -20,16 +20,16 @@ public class Cell
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string Type { get; set; }
|
|
|
|
public bool IsDangerous { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
private string? Background { get; set; }
|
|
|
|
public string? Background { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Cell(int x, int y)
|
|
|
|
public Cell(int x, int y)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Pos = new Position(x, y);
|
|
|
|
Pos = new Position(x, y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string GetCellType() => Type;
|
|
|
|
public bool GetCellType() => IsDangerous;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Redefinition de l'opérateur == pour comparer deux cellules
|
|
|
|
// Redefinition de l'opérateur == pour comparer deux cellules
|
|
|
@ -48,4 +48,5 @@ public class Cell
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Pos.X * Pos.Y;
|
|
|
|
return Pos.X * Pos.Y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|