22 lines
795 B
Java
22 lines
795 B
Java
import java.awt.*;
|
|
|
|
public class GasolineTanker extends BaseTanker{
|
|
private Color AdditionalColor;
|
|
public Color GetAdditionalColor() {return AdditionalColor;}
|
|
public void setAdditionalColor(Color color) {AdditionalColor = color;}
|
|
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;
|
|
}
|
|
}
|