Добавление новой формулы и цвета

This commit is contained in:
Максим Егоров 2024-02-26 10:50:03 +04:00
parent 6d876a6736
commit a8887319a1

View File

@ -11,6 +11,7 @@ namespace Sailboat.Entities
public int Speed { get; private set; } public int Speed { get; private set; }
public double Weight { get; private set; } public double Weight { get; private set; }
public Color BodyColor { get; private set; } public Color BodyColor { get; private set; }
public void setBodyColor(Color color) { BodyColor = color; }
public double Step => (double)Speed * 100 / Weight; public double Step => (double)Speed * 100 / Weight;
public EntityBoat(int speed, double weight, Color bodyColor) public EntityBoat(int speed, double weight, Color bodyColor)
{ {