2024-03-03 11:38:17 +04:00
|
|
|
|
namespace AntiAircraftGun.Entities;
|
2024-02-21 17:00:14 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Класс-сущность Зенитная установка
|
|
|
|
|
/// </summary>
|
2024-03-03 11:38:17 +04:00
|
|
|
|
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-03-03 11:38:17 +04:00
|
|
|
|
|
2024-02-21 17:00:14 +04:00
|
|
|
|
/// <summary>
|
2024-03-03 11:38:17 +04:00
|
|
|
|
/// Инициализация полей объекта-класса зенитной установки
|
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>
|
2024-03-03 11:38:17 +04:00
|
|
|
|
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-03-03 11:38:17 +04:00
|
|
|
|
|
2024-02-21 17:00:14 +04:00
|
|
|
|
Radar = radar;
|
2024-03-03 11:38:17 +04:00
|
|
|
|
Tower = tower;
|
|
|
|
|
BodyKit = bodyKit;
|
|
|
|
|
AdditionalColor = additionalColor;
|
2024-02-21 17:00:14 +04:00
|
|
|
|
}
|
|
|
|
|
}
|