промежуточное

This commit is contained in:
xom9kxom9k 2024-02-05 16:01:11 +04:00
parent 184b17a3a5
commit 18ca5d9c1c

38
Seaplane/EnitySeaplane.cs Normal file
View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Seaplane;
public class EnitySeaplane
{
public int Speed { get; private set; }
public double Weight { get; private set; }
public Color BodyColor { get; private set; }
public Color AdditionalColor { get; private set; }
public bool BodyKit { get; private set; }
public bool Floats { get; private set; }
public bool InflatableBoat { get; private set; }
public double Step => Speed * 100 / Weight;
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool bodyKit, bool floats, bool inflatableBoat)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
BodyKit = bodyKit;
Floats = floats;
InflatableBoat = inflatableBoat;
}
}