diff --git a/Seaplane/EnitySeaplane.cs b/Seaplane/EnitySeaplane.cs new file mode 100644 index 0000000..89cb285 --- /dev/null +++ b/Seaplane/EnitySeaplane.cs @@ -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; + + } +}