2023-10-18 12:33:39 +04:00
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
public class GasolineTanker extends BaseTanker{
|
|
|
|
private Color AdditionalColor;
|
|
|
|
public Color GetAdditionalColor() {return AdditionalColor;}
|
2023-11-28 17:44:07 +04:00
|
|
|
public void setAdditionalColor(Color color) {AdditionalColor = color;}
|
2023-10-18 12:33:39 +04:00
|
|
|
private boolean BodyKit;
|
|
|
|
public boolean GetBodyKit() {return BodyKit;}
|
|
|
|
private boolean Wing;
|
|
|
|
public boolean GetWing() {return Wing;}
|
|
|
|
private boolean SportLine;
|
|
|
|
public boolean GetSportLine() {return SportLine;}
|
|
|
|
public GasolineTanker(int speed, double weight, Color bodyColor, Color additionalColor, boolean bodyKit, boolean wing, boolean sportLine)
|
|
|
|
{
|
|
|
|
super(speed, weight, bodyColor);
|
|
|
|
AdditionalColor = additionalColor;
|
|
|
|
BodyKit = bodyKit;
|
|
|
|
Wing = wing;
|
|
|
|
SportLine = sportLine;
|
|
|
|
}
|
|
|
|
}
|