From 18ca5d9c1c36ddcce41a6eecbd279601ea8f7321 Mon Sep 17 00:00:00 2001 From: xom9kxom9k Date: Mon, 5 Feb 2024 16:01:11 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=BC=D0=B5=D0=B6=D1=83?= =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BD=D0=BE=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Seaplane/EnitySeaplane.cs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Seaplane/EnitySeaplane.cs 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; + + } +}