PIbd-23_Vrazhkin_S_A_Electr.../lab1/Entities/EntityElectricLocomotiv.cs
2023-11-28 12:26:51 +04:00

16 lines
576 B
C#

namespace ElectricLocomotive;
public class EntityElectricLocomotiv : EntityLocomotiv
{
public Color BatteryColor { get; set; }
public Color RogaColor { get; set; }
public bool isRoga;
public bool isBattery;
public EntityElectricLocomotiv(int speed,double weight, Color batteryColor, Color rogaColor, Color mainColor, Color dopColor, bool isRoga, bool isBattery) : base(speed, weight, mainColor, dopColor)
{
BatteryColor = batteryColor;
RogaColor = rogaColor;
this.isRoga = isRoga;
this.isBattery = isBattery;
}
}