PIbd-11_Gulina_V.S._LabWork06_Simple #6

Closed
victinass wants to merge 3 commits from LabWork06 into LabWork05
Showing only changes of commit 98e674863f - Show all commits

View File

@ -5,18 +5,6 @@
/// </summary>
public class EntityBattleship : EntityWarship
{
/// <summary>
/// Скорость
/// </summary>
public int Speed { get; private set; }
/// <summary>
/// Вес
/// </summary>
public double Weight { get; private set; }
/// <summary>
/// Основной цвет
/// </summary>
public Color BodyColor { get; private set; }
/// /// <summary>
/// Признак (опция) отсека для ракет
/// </summary>
@ -57,6 +45,15 @@ public class EntityBattleship : EntityWarship
AdditionalColor = additionalColor;
}
/// <summary>
/// Получение строки с значением свойств объекта класса-сущности
/// </summary>
/// <returns></returns>
public override string[] GetStringRepresentation()
{
return new[] { nameof(EntityBattleship), Speed.ToString(), Weight.ToString(), BodyColor.Name, Compartment.ToString(), Tower.ToString(), BodyDeck.ToString(), AdditionalColor.Name};
}
/// <summary>
/// Создание продвинутого объекта из массива строк
/// </summary>