PIbd21.LyovushkinaA.A.Conta.../EntityContainerShip.java
2023-11-20 19:04:16 +04:00

22 lines
683 B
Java

import java.awt.*;
public class EntityContainerShip extends EntityShip{
public Color AdditionalColor;
public boolean Crane;
public boolean Conteiners;
public int Deck;
public int DeckType;
public EntityContainerShip(int speed, double weight, Color bodyColor, Color
additionalColor, boolean crane, boolean containers, int deck, int deckType)
{
super(speed, weight,bodyColor);
AdditionalColor = additionalColor;
Crane = crane;
Conteiners = containers;
Deck = deck;
DeckType = deckType;
}
public void setAdditionalColor(Color color){AdditionalColor = color;}
}