47 lines
1.6 KiB
C#
47 lines
1.6 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace DumpTruck.Entities
|
|||
|
{
|
|||
|
public class EntityDumpTruck : EntityTruck
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Признак (опция) наличия тента
|
|||
|
/// </summary>
|
|||
|
public bool Tent { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// Признак (опция) наличия кузова
|
|||
|
/// </summary>
|
|||
|
public bool DumpBox { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// Цвет кузова
|
|||
|
/// </summary>
|
|||
|
public Color DumpBoxColor { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// Цвет тента
|
|||
|
/// </summary>
|
|||
|
public Color TentColor { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// Конструктор
|
|||
|
/// </summary>
|
|||
|
/// <param name="speed">Скорость</param>
|
|||
|
/// <param name="weight">Вес самосвала</param>
|
|||
|
/// <param name="bodyColor">Основной цвет самосвала</param>
|
|||
|
/// <param name="tent">Признак наличия тента</param>
|
|||
|
/// <param name="dumpBox">Признак наличия кузова</param>
|
|||
|
/// <param name="dumpBoxColor">Цвет кузова</param>
|
|||
|
/// <param name="tentColor">Цвет тента</param>
|
|||
|
|
|||
|
public EntityDumpTruck(int speed, double weight, Color bodyColor, bool tent, bool dumpBox, Color tentColor, Color dumpBoxColor) : base(speed, weight, bodyColor)
|
|||
|
{
|
|||
|
Tent = tent;
|
|||
|
DumpBox = dumpBox;
|
|||
|
DumpBoxColor = dumpBoxColor;
|
|||
|
TentColor = tentColor;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|