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