Создал класс EntityAircraftCarrier

This commit is contained in:
Shtyrkin_Egor 2024-02-05 10:41:09 +04:00
parent 0a9b3c6be6
commit 1c2b4b399b

View File

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