PIbd22_Kuznetsov_A.V._Excav.../Excavator/EntityMash.cs

22 lines
583 B
C#
Raw Permalink Normal View History

2023-12-15 21:24:31 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Excavator.Entities
{
public class EntityMash
{
public int Speed { get; private set; }
public double Weight { get; private set; }
public Color BodyColor { get; private set; }
public double Step => (double)Speed * 100 / Weight;
public EntityMash(int speed, double weight, Color bodyColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}
}