PIbd22_NikiforovaMV_Contain.../ContainerShip/EntityContainerShip.cs
2023-12-16 11:16:37 +04:00

30 lines
837 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace ContainerShip.Entities
{
public class EntityContainerShip : EntityShip
{
public Color AdditionalColor { get; private set; }
public bool Load { get; private set; }
public bool Crane { get; private set; }
public EntityContainerShip(int speed, double weight, Color bodyColor, Color additionalColor, bool load, bool crane) : base(speed, weight, bodyColor)
{
AdditionalColor = additionalColor;
Load = load;
Crane = crane;
}
public void ChangeAdditionalColor(Color additionalColor)
{
AdditionalColor = additionalColor;
}
}
}