2024-03-05 09:00:55 +04:00
|
|
|
|
namespace ProjectStormtrooper.Entities;
|
2024-02-18 18:45:41 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Класс-сущность "Штурмовик"
|
|
|
|
|
/// </summary>
|
2024-03-05 09:00:55 +04:00
|
|
|
|
public class EntityStormtrooper: EntityStormtrooperBase
|
2024-02-18 18:45:41 +04:00
|
|
|
|
{
|
2024-03-05 09:00:55 +04:00
|
|
|
|
|
2024-02-18 18:45:41 +04:00
|
|
|
|
public Color AdditionalColor { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Признак (опция) наличия ракет
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Rockets { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Признак (опция) наличия бомб
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Bombs { get; private set; }
|
|
|
|
|
|
2024-03-05 09:00:55 +04:00
|
|
|
|
|
2024-02-18 18:45:41 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Инициализация полей объекта-класса штурмовик
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="speed">Скорость</param>
|
|
|
|
|
/// <param name="weight">Вес </param>
|
|
|
|
|
/// <param name="bodyColor">Основной цвет</param>
|
|
|
|
|
/// <param name="additionalColor">Дополнительный цвет</param>
|
|
|
|
|
/// <param name="rockets">Признак наличия ракет</param>
|
|
|
|
|
/// <param name="bombs">Признак наличия бомб</param>
|
|
|
|
|
|
2024-03-05 09:00:55 +04:00
|
|
|
|
public EntityStormtrooper(int speed, double weight, Color bodyColor, Color additionalColor, bool rockets, bool bombs):base(speed, weight, bodyColor)
|
2024-02-18 18:45:41 +04:00
|
|
|
|
{
|
2024-03-05 09:00:55 +04:00
|
|
|
|
|
2024-02-18 18:45:41 +04:00
|
|
|
|
AdditionalColor = additionalColor;
|
|
|
|
|
Rockets = rockets;
|
|
|
|
|
Bombs = bombs;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|