ISEbd-21_Tomasheva_RoadTrai.../RoadTrain/RoadTrain/EntitySweeperRoadTrain.cs
2022-12-07 12:13:11 +04:00

42 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace RoadTrain
{
/// <summary>
/// Класс-сущность "Подметально-уборочная машина"
/// </summary>
internal class EntitySweeperRoadTrain : EntityRoadTrain
{
/// <summary>
/// Дополнительный цвет
/// </summary>
public Color DopColor { get; private set; }
/// <summary>
/// Признак наличия бака под воду
/// </summary>
public bool WaterTank { get; private set; }
/// <summary>
/// Признак наличия подметательной щётки
/// </summary>
public bool SweepingBush { get; private set; }
/// <summary>
/// Инициализация свойств
/// </summary>
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес грузовика</param>
/// <param name="bodyColor">Цвет кузова</param>
/// <param name="dopColor">Дополнительный цвет</param>
/// <param name="waterTank">Признак водяного бака</param>
/// <param name="sweepingBush">Признак подметательной щётки</param>
public EntitySweeperRoadTrain(int speed, float weight, Color bodyColor, Color
dopColor, bool waterTank, bool sweepingBush) :
base(speed, weight, bodyColor)
{
DopColor = dopColor;
WaterTank = waterTank;
SweepingBush = sweepingBush;
}
}
}