namespace AirBomber { public class BomberEntity { 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 Bombs { get; private set; } public bool FuelTanks { get; private set; } public double Step => (double)Speed * 100 / Weight * 5 / 2; public void Init(int Speed, double Weight, Color BodyColor, Color AdditionalColor, bool FuelTanks, bool Bombs) { this.Speed = Speed; this.Weight = Weight; this.BodyColor = BodyColor; this.AdditionalColor = AdditionalColor; this.FuelTanks = FuelTanks; this.Bombs = Bombs; } } }