PIbd22_Kamcharova_K.A._Doub.../DoubleDeckerBus/Entities/EntityDoubleDeckerbus.cs

28 lines
838 B
C#
Raw Normal View History

2023-11-14 14:11:54 +04:00
using DoubleDeckerbus.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DoubleDeckerbus.Entities
{
2023-11-25 15:23:25 +04:00
public class EntityDoubleDeckerbus : EntityBus
2023-11-14 14:11:54 +04:00
{
2023-11-25 15:25:33 +04:00
public Color AddColor { get; private set; }
2023-12-15 20:07:22 +04:00
public bool IsSecondFloor { get; private set; }
public bool IsStairs { get; private set; }
2023-11-25 15:23:25 +04:00
public EntityDoubleDeckerbus(int speed, double weight, Color bodyColor, Color additionalColor, bool secondfloor, bool stairs) : base(speed, weight, bodyColor)
2023-11-14 14:11:54 +04:00
{
2023-11-25 15:25:33 +04:00
AddColor = additionalColor;
2023-12-15 20:07:22 +04:00
IsSecondFloor = secondfloor;
IsStairs = stairs;
2023-11-14 14:11:54 +04:00
}
2023-12-15 20:07:22 +04:00
2023-11-25 15:23:25 +04:00
public void ChangeAdditionalColor(Color additionalColor)
{
2023-11-25 15:25:33 +04:00
AddColor = additionalColor;
2023-11-25 15:23:25 +04:00
}
2023-11-14 14:11:54 +04:00
}
}