PIbd22_Kamcharova_K.A._lab5

This commit is contained in:
MayDayR 2023-11-25 14:25:33 +03:00
parent 4086d63f23
commit ee27ff9217

View File

@ -9,18 +9,18 @@ namespace DoubleDeckerbus.Entities
{
public class EntityDoubleDeckerbus : EntityBus
{
public Color Body { get; private set; }
public Color AddColor { get; private set; }
public bool Secondfloor { get; private set; }
public bool Stairs { get; private set; }
public EntityDoubleDeckerbus(int speed, double weight, Color bodyColor, Color additionalColor, bool secondfloor, bool stairs) : base(speed, weight, bodyColor)
{
Body = additionalColor;
AddColor = additionalColor;
Secondfloor = secondfloor;
Stairs = stairs;
}
public void ChangeAdditionalColor(Color additionalColor)
{
Body = additionalColor;
AddColor = additionalColor;
}
}
}