PIbd22_Kamcharova_K.A._lab5
This commit is contained in:
parent
4086d63f23
commit
ee27ff9217
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user