PIbd-23_Minhasapov_R.H._Exc.../EntityTrackedVehicle.java

30 lines
770 B
Java
Raw Permalink Normal View History

import java.awt.*;
public class EntityTrackedVehicle extends EntityTracktor {
// Дополнительный цвет
private Color dopColor;
// Признак наличия ковша
private boolean bucket;
// Признак наличия опор
private boolean supports;
public EntityTrackedVehicle(int speed, float weight, Color bodyColor, Color dopColor, boolean bucket, boolean supports){
super(speed, weight, bodyColor);
this.dopColor = dopColor;
this.bucket = bucket;
this.supports = supports;
}
public Color getDopColor(){
return dopColor;
}
public boolean getBucket(){
return bucket;
}
public boolean getSupports(){
return supports;
}
}