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; + } + } +}