лаба 6 правки
This commit is contained in:
parent
5ef5d78937
commit
8791edafb8
@ -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; set; }
|
public Color BodyColor { get; 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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user