PIBD-13_Fomichev_V.S._Simple_/AntiAircraftGun/Entities/EntityAntiAircraftGun.cs

43 lines
1.5 KiB
C#
Raw Normal View History

namespace AntiAircraftGun.Entities;
2024-02-21 17:00:14 +04:00
/// <summary>
/// Класс-сущность Зенитная установка
/// </summary>
public class EntityAntiAircraftGun : EntityAircraftGun
{
2024-02-21 17:00:14 +04:00
/// <summary>
/// Дополниетльный цвет
/// </summary>
public Color AdditionalColor { get; private set; }
/// <summary>
/// Наличие обвеса
/// </summary>
public bool BodyKit { get; private set; }
/// <summary>
/// Наличие башни
/// </summary>
public bool Tower { get; private set; }
/// <summary>
/// Наличие радара
/// </summary>
public bool Radar { get; private set; }
2024-02-21 17:00:14 +04:00
/// <summary>
/// Инициализация полей объекта-класса зенитной установки
2024-02-21 17:00:14 +04:00
/// </summary>
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес</param>
/// <param name="bodyColor">Основной цвет</param>
/// <param name="additionalColor">Дополнительный цвет</param>
/// <param name="bodyKit">Наличие обвеса</param>
/// <param name="tower">Наличие башни</param>
/// <param name="radar">Наличие радара</param>
public EntityAntiAircraftGun(int speed, double weight, Color bodyColor, bool radar, bool tower, bool bodyKit, Color additionalColor) : base(speed, weight, bodyColor)
2024-02-21 17:00:14 +04:00
{
2024-02-21 17:00:14 +04:00
Radar = radar;
Tower = tower;
BodyKit = bodyKit;
AdditionalColor = additionalColor;
2024-02-21 17:00:14 +04:00
}
}