Лабараторная работа №4 1

This commit is contained in:
IlyasValiulov 2024-04-04 18:50:39 +04:00
parent 8404340fc4
commit b30f5254c1
2 changed files with 0 additions and 3 deletions

View File

@ -4,9 +4,7 @@ import java.awt.*;
public class EntityShip { public class EntityShip {
private int Speed; private int Speed;
public int getSpeed() {return Speed;}
private double Weight; private double Weight;
public double getWeight() {return Weight;}
private Color BodyColor; private Color BodyColor;
public Color getBodyColor() {return BodyColor;} public Color getBodyColor() {return BodyColor;}
public double Step; public double Step;

View File

@ -5,7 +5,6 @@ public class EntityWarmlyShip extends EntityShip{
public Color AdditionalColor; public Color AdditionalColor;
public Color getAdditionalColor() {return AdditionalColor;} public Color getAdditionalColor() {return AdditionalColor;}
public boolean ShipPipes; public boolean ShipPipes;
public boolean getShipPipes() {return ShipPipes;}
public boolean FuelTank; public boolean FuelTank;
public boolean getFuelTank() {return FuelTank;} public boolean getFuelTank() {return FuelTank;}
public EntityWarmlyShip(int speed, double weight, Color bodyColor, Color additionalcolor, boolean sheeppipes, boolean fueltank) public EntityWarmlyShip(int speed, double weight, Color bodyColor, Color additionalcolor, boolean sheeppipes, boolean fueltank)