PIbd22_NikiforovaMV_Contain.../ContainerShip/EntityContainerShip.cs
2023-11-25 12:27:56 +04:00

33 lines
942 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
{
public class EntityContainerShip
{
public int Speed { get; private set; }
public double Weight { get; private set; }
public Color BodyColor { get; private set; }
public Color AdditionalColor { get; private set; }
public bool Load { get; private set; }
public bool Crane { get; private set; }
public double Step => (double)Speed * 100 / Weight;
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool load, bool crane)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
Load = load;
Crane = crane;
}
}
}