Added class EntityAdvancedArtillery
This commit is contained in:
parent
e890502041
commit
145d4dac45
26
EntityAdvancedArtillery.java
Normal file
26
EntityAdvancedArtillery.java
Normal file
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user