30 lines
770 B
Java
30 lines
770 B
Java
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;
|
|
}
|
|
}
|