2023-09-19 19:04:33 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ElectricLocomotive
|
|
|
|
|
{
|
|
|
|
|
public class EntityLocomotiv
|
|
|
|
|
{
|
|
|
|
|
public int Speed { get; private set; }
|
|
|
|
|
public double Weight { get; private set; }
|
|
|
|
|
public double Step => (double)Speed * 100 / Weight;
|
|
|
|
|
public readonly Color ColorBody = Color.Black;
|
|
|
|
|
public readonly Color ColorWindow = Color.Blue;
|
|
|
|
|
public readonly Color ColorFillBody = Color.White;
|
2023-10-03 11:53:51 +04:00
|
|
|
|
|
|
|
|
|
public EntityLocomotiv(int speed,double weight)
|
2023-09-19 19:04:33 +04:00
|
|
|
|
{
|
|
|
|
|
Speed = speed;
|
|
|
|
|
Weight = weight;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|