diff --git a/AirBomber/AirBomber/Direction.cs b/AirBomber/AirBomber/Direction.cs new file mode 100644 index 0000000..eb271bc --- /dev/null +++ b/AirBomber/AirBomber/Direction.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AirBomber +{ + internal class Direction + { + } +} diff --git a/AirBomber/AirBomber/EntityAirBomber.cs b/AirBomber/AirBomber/EntityAirBomber.cs index d1af57d..fa37724 100644 --- a/AirBomber/AirBomber/EntityAirBomber.cs +++ b/AirBomber/AirBomber/EntityAirBomber.cs @@ -6,7 +6,35 @@ using System.Threading.Tasks; namespace AirBomber { - internal class EntityAirBomber + public class EntityAirBomber { + + 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; + /// + /// Инициализация полей объекта-класса спортивного автомобиля + /// + /// Скорость + /// Вес бомбардировщика + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия бомб + /// Признак наличия топливных баков + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool bombs, bool fueltanks) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Bombs = bombs; + FuelTanks = fueltanks; + } + } }