26 lines
816 B
C#
26 lines
816 B
C#
using DoubleDeckerbus.Entities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DoubleDeckerbus.Entities
|
|
{
|
|
public class EntityDoubleDeckerbus : EntityBus
|
|
{
|
|
public Color Body { 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;
|
|
Secondfloor = secondfloor;
|
|
Stairs = stairs;
|
|
}
|
|
public void ChangeAdditionalColor(Color additionalColor)
|
|
{
|
|
Body = additionalColor;
|
|
}
|
|
}
|
|
} |