From 1c2b4b399bf703ad1bf474e0551331d4e2f2001e Mon Sep 17 00:00:00 2001 From: Shtyrkin_Egor Date: Mon, 5 Feb 2024 10:41:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20=D0=BA?= =?UTF-8?q?=D0=BB=D0=B0=D1=81=D1=81=20EntityAircraftCarrier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectAircraftCarrier.cs | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ProjectAircraftCarrier/ProjectAircraftCarrier/ProjectAircraftCarrier.cs diff --git a/ProjectAircraftCarrier/ProjectAircraftCarrier/ProjectAircraftCarrier.cs b/ProjectAircraftCarrier/ProjectAircraftCarrier/ProjectAircraftCarrier.cs new file mode 100644 index 0000000..e322ef5 --- /dev/null +++ b/ProjectAircraftCarrier/ProjectAircraftCarrier/ProjectAircraftCarrier.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Permissions; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAircraftCarrier +{ + public class EntityAircraftCarrier + { + 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 AircraftDeck { get; private set; } + + public bool ControlRoom { get; private set; } + + public double Step => Speed * 100 / Weight; + + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool aircratDeck, bool controlRoom){ + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + AircraftDeck = aircratDeck; + } + } +}