using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DumpTruck { internal class EntityTruck { public int Speed { get; private set; } public float Weight { get; private set; } public Color BodyColor { get; private set; } public Color AdditionalColor { get; private set; } public float Step => Speed * 100 / Weight; public void Init(int speed, float weight, Color bodyColor, Color additionalColor) { Speed = speed; Weight = weight; BodyColor = bodyColor; AdditionalColor = additionalColor; } } }