PIbd-23_Starostin_I.K._Lain.../lainer/Lainer1/EntityLainer.cs

16 lines
486 B
C#
Raw Normal View History

2023-12-08 20:09:26 +04:00
namespace ProjectLainer.Entities
2023-12-03 18:15:11 +04:00
{
public class EntityLainer
{
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;
2023-12-08 20:09:26 +04:00
public EntityLainer(int speed, double weight, Color bodyColor)
2023-12-03 18:15:11 +04:00
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}
2023-12-08 20:09:26 +04:00
}