2023-11-25 12:27:56 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2023-11-25 12:44:21 +04:00
|
|
|
|
namespace ContainerShip.Entities
|
2023-11-25 12:27:56 +04:00
|
|
|
|
{
|
2023-11-25 12:44:21 +04:00
|
|
|
|
public class EntityContainerShip : EntityShip
|
2023-11-25 12:27:56 +04:00
|
|
|
|
{
|
|
|
|
|
public Color AdditionalColor { get; private set; }
|
|
|
|
|
public bool Load { get; private set; }
|
|
|
|
|
public bool Crane { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 12:44:21 +04:00
|
|
|
|
public EntityContainerShip(int speed, double weight, Color bodyColor, Color additionalColor, bool load, bool crane) : base(speed, weight, bodyColor)
|
2023-11-25 12:27:56 +04:00
|
|
|
|
{
|
|
|
|
|
AdditionalColor = additionalColor;
|
|
|
|
|
Load = load;
|
|
|
|
|
Crane = crane;
|
|
|
|
|
}
|
2023-12-16 11:16:37 +04:00
|
|
|
|
public void ChangeAdditionalColor(Color additionalColor)
|
|
|
|
|
{
|
|
|
|
|
AdditionalColor = additionalColor;
|
|
|
|
|
}
|
2023-11-25 12:27:56 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|