From 145d4dac45488829b2a833e5c264550123a9556e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B2=D0=BE=D0=B9?= Date: Sat, 8 Oct 2022 15:03:57 +0400 Subject: [PATCH] Added class EntityAdvancedArtillery --- EntityAdvancedArtillery.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 EntityAdvancedArtillery.java diff --git a/EntityAdvancedArtillery.java b/EntityAdvancedArtillery.java new file mode 100644 index 0000000..746d15d --- /dev/null +++ b/EntityAdvancedArtillery.java @@ -0,0 +1,26 @@ +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; + } +}