PIbd-22_Bondarenko_M.S._War.../EntityMotorShip.java

22 lines
558 B
Java
Raw Permalink Normal View History

2022-11-29 00:27:51 +04:00
import java.awt.*;
public class EntityMotorShip extends EntityWarmlyShip {
private Color DopColor;
private boolean Tubes;
private boolean Cistern;
public EntityMotorShip(int speed, float weight, Color bodyColor, Color dopColor, boolean tubes, boolean cistern)
{
super(speed, weight, bodyColor);
DopColor = dopColor;
Tubes = tubes;
Cistern = cistern;
}
public Color GetDopColor(){return DopColor;}
public boolean GetTubes(){return Tubes;}
public boolean GetCistern(){return Cistern;}
}