PIbd-23_Bogdanov_D.S._Ship..../EntityMotorShip.java
2022-11-22 10:13:07 +04:00

26 lines
613 B
Java

import java.awt.*;
public class EntityMotorShip extends EntityShip {
private Color dopColor;
private boolean pipes;
private boolean fueltank;
public EntityMotorShip(int speed, float weight, Color bodyColor, Color dopColor, boolean pipes, boolean fueltank) {
super(speed, weight, bodyColor);
this.dopColor = dopColor;
this.pipes = pipes;
this.fueltank = fueltank;
}
public Color getDopColor() {
return dopColor;
}
public boolean getPipes() {
return pipes;
}
public boolean getFuelTank() {
return fueltank;
}
}