лаб-7
This commit is contained in:
parent
75e3a5d823
commit
d2eb0bd3cd
@ -4,13 +4,11 @@ using System.Linq;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static System.Reflection.Metadata.BlobBuilder;
|
||||
|
||||
namespace AircraftCarrier
|
||||
{
|
||||
internal class EntityModernAircraftCarrier : EntityAircraftCarrier
|
||||
{
|
||||
private static readonly char _separatorForObject = ':';
|
||||
public Color DopColor { get; set; }
|
||||
public bool FlightDeck { get; private set; }
|
||||
public bool HangarDeck { get; private set; }
|
||||
@ -22,10 +20,5 @@ namespace AircraftCarrier
|
||||
HangarDeck = hangarDeck;
|
||||
Route = route;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
var str = base.ToString();
|
||||
return $"{str}{_separatorForObject}{DopColor.Name}{_separatorForObject}{FlightDeck}{_separatorForObject}{HangarDeck}{_separatorForObject}{Route}";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user