2024-10-03 01:16:11 +04:00
|
|
|
|
using ProjectGasolineTanker.Entities;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectGasolineTanker.Entities
|
|
|
|
|
{
|
2024-10-03 01:40:53 +04:00
|
|
|
|
|
2024-10-03 01:16:11 +04:00
|
|
|
|
public class EntityGasolineTanker : EntityTruck
|
|
|
|
|
{
|
2024-10-03 01:40:53 +04:00
|
|
|
|
|
|
|
|
|
public Color Add_Color { get; private set; }
|
2024-10-03 01:44:06 +04:00
|
|
|
|
public bool IsTank { get; private set; }
|
|
|
|
|
public bool IsWheel { get; private set; }
|
2024-10-03 01:40:53 +04:00
|
|
|
|
|
|
|
|
|
|
2024-10-03 01:16:11 +04:00
|
|
|
|
public EntityGasolineTanker(int speed, double weight, Color bodyColor, Color additionalColor, bool tank, bool wheel) : base(speed, weight, bodyColor)
|
|
|
|
|
{
|
2024-10-03 01:40:53 +04:00
|
|
|
|
Add_Color = additionalColor;
|
2024-10-03 01:44:06 +04:00
|
|
|
|
IsTank = tank;
|
|
|
|
|
IsWheel = wheel;
|
2024-10-03 01:16:11 +04:00
|
|
|
|
}
|
2024-10-03 01:43:12 +04:00
|
|
|
|
|
|
|
|
|
public void ChangeAdditionalColor(Color additionalColor)
|
|
|
|
|
{
|
|
|
|
|
Add_Color = additionalColor;
|
|
|
|
|
}
|
2024-10-03 01:16:11 +04:00
|
|
|
|
}
|
2024-10-03 01:40:53 +04:00
|
|
|
|
}
|
|
|
|
|
|