35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using static System.Net.Mime.MediaTypeNames;
|
|||
|
|
|||
|
namespace WarmlyLocomotive.Entities
|
|||
|
{
|
|||
|
public class Pro : EntityWarmlyLocomotive
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Дополнительный цвет (для опциональных элементов)
|
|||
|
/// </summary>
|
|||
|
public Color AdditionalColor { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// Признак (опция) наличия трубы
|
|||
|
/// </summary>
|
|||
|
public bool Trumpet { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// Признак (опция) наличия прицепа
|
|||
|
/// </summary>
|
|||
|
public bool Luggage { get; private set; }
|
|||
|
public Pro(int speed, double weight, Color bodyColor, Color
|
|||
|
additionalColor, bool trumpet,bool luggage) : base(speed, weight, bodyColor)
|
|||
|
{
|
|||
|
|
|||
|
AdditionalColor = additionalColor;
|
|||
|
Trumpet = trumpet;
|
|||
|
Luggage = luggage;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|