28 lines
759 B
C#
28 lines
759 B
C#
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; set; }
|
|
public double Weight { get; set; }
|
|
public double Step => (double)Speed * 100 / Weight;
|
|
public Color ColorBody = Color.Black;
|
|
public Color ColorWindow = Color.Blue;
|
|
public readonly Color ColorFillBody = Color.White;
|
|
|
|
public EntityLocomotiv(int speed,double weight, Color mainColor, Color dopColor)
|
|
{
|
|
Speed = speed;
|
|
Weight = weight;
|
|
ColorBody = mainColor;
|
|
ColorWindow = dopColor;
|
|
}
|
|
}
|
|
}
|