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:23:25 +04:00
|
|
|
|
public Color Body { get; private set; }
|
2023-11-14 14:11:54 +04:00
|
|
|
|
public bool Secondfloor { get; private set; }
|
|
|
|
|
public bool Stairs { 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:23:25 +04:00
|
|
|
|
Body = additionalColor;
|
2023-11-14 14:11:54 +04:00
|
|
|
|
Secondfloor = secondfloor;
|
|
|
|
|
Stairs = stairs;
|
|
|
|
|
}
|
2023-11-25 15:23:25 +04:00
|
|
|
|
public void ChangeAdditionalColor(Color additionalColor)
|
|
|
|
|
{
|
|
|
|
|
Body = additionalColor;
|
|
|
|
|
}
|
2023-11-14 14:11:54 +04:00
|
|
|
|
}
|
|
|
|
|
}
|