PIbd-23_Polevoy_S.V._SelfPr.../EntityAdvancedArtillery.java

27 lines
665 B
Java
Raw Normal View History

2022-10-08 15:03:57 +04:00
import java.awt.*;
public class EntityAdvancedArtillery extends EntityArtillery {
private Color dopColor;
private boolean weapon;
private boolean salvoBattery;
public EntityAdvancedArtillery(int speed, float weight, Color bodyColor, Color dopColor, boolean weapon, boolean salvoBattery) {
super(speed, weight, bodyColor);
this.dopColor = dopColor;
this.weapon = weapon;
this.salvoBattery = salvoBattery;
}
public Color getDopColor() {
return dopColor;
}
public boolean getWeapon() {
return weapon;
}
public boolean getSalvoBattery() {
return salvoBattery;
}
}