2024-03-01 19:55:24 +04:00
|
|
|
|
namespace ProjectAirplaneWithRadar.Entities
|
2024-02-10 18:11:15 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Класс-сущность "Самолет с радаром"
|
|
|
|
|
/// </summary>
|
2024-03-01 19:55:24 +04:00
|
|
|
|
public class EntityAirplaneWithRadar : EntityAirplane
|
2024-02-10 18:11:15 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дополнительный цвет (для опциональных элементов)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Color AdditionalColor { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Признак (опция) наличия шасси
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Wheels { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-02-18 17:22:50 +04:00
|
|
|
|
/// Признак (опция) наличия ракеты
|
2024-02-10 18:11:15 +04:00
|
|
|
|
/// </summary>
|
2024-03-06 16:28:03 +04:00
|
|
|
|
public bool Radar { get; private set; }
|
2024-02-10 18:11:15 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-02-18 17:22:50 +04:00
|
|
|
|
/// Инициализация полей объекта-класса самолета с радаром
|
2024-02-10 18:11:15 +04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="speed">Скорость</param>
|
2024-02-18 17:22:50 +04:00
|
|
|
|
/// <param name="weight">Вес</param>
|
2024-02-10 18:11:15 +04:00
|
|
|
|
/// <param name="bodyColor">Основной цвет</param>
|
|
|
|
|
/// <param name="additionalColor">Дополнительный цвет</param>
|
2024-02-18 17:22:50 +04:00
|
|
|
|
/// <param name="wheels">Шасси</param>
|
2024-03-06 16:28:03 +04:00
|
|
|
|
/// <param name="radar">Радар</param>
|
|
|
|
|
public EntityAirplaneWithRadar(int speed, double weight, Color bodyColor, Color additionalColor, bool wheels, bool radar) : base(speed, weight, bodyColor)
|
2024-02-10 18:11:15 +04:00
|
|
|
|
{
|
|
|
|
|
AdditionalColor = additionalColor;
|
|
|
|
|
Wheels = wheels;
|
2024-03-06 16:28:03 +04:00
|
|
|
|
Radar = radar;
|
2024-02-10 18:11:15 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|