Добавление новой формулы и цвета
This commit is contained in:
parent
6d876a6736
commit
a8887319a1
@ -11,6 +11,7 @@ namespace Sailboat.Entities
|
||||
public int Speed { get; private set; }
|
||||
public double Weight { get; private set; }
|
||||
public Color BodyColor { get; private set; }
|
||||
public void setBodyColor(Color color) { BodyColor = color; }
|
||||
public double Step => (double)Speed * 100 / Weight;
|
||||
public EntityBoat(int speed, double weight, Color bodyColor)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user