This commit is contained in:
the 2022-12-06 10:18:48 +04:00
parent b84c7369ad
commit 0d7397b322
4 changed files with 7 additions and 7 deletions

View File

@ -4,8 +4,8 @@ public class DrawingDecks implements IDrawingDecks {
private DecksCount deckCount;
private Color color;
public DrawingDecks(int deckCount, Color bodyColor) {
setDecksCount(deckCount);
public DrawingDecks(int decksCount, Color bodyColor) {
setDecksCount(decksCount);
color = bodyColor;
}

View File

@ -1,8 +1,8 @@
import java.awt.*;
public class DrawingMotorShip extends DrawingShip {
public DrawingMotorShip(int speed, float weight, Color bodyColor, int rollersCount, Color dopColor, boolean pipes, boolean fueltank) {
super(speed, weight, bodyColor, rollersCount, 80, 50);
public DrawingMotorShip(int speed, float weight, Color bodyColor, int decksCount, Color dopColor, boolean pipes, boolean fueltank) {
super(speed, weight, bodyColor, decksCount, 80, 50);
ship = new EntityMotorShip(speed, weight, bodyColor, dopColor, pipes, fueltank);
}

View File

@ -4,8 +4,8 @@ public class DrawingTriDecks implements IDrawingDecks {
private DecksCount decksCount;
private Color color;
public DrawingTriDecks(int rollersCount, Color bodyColor) {
setDecksCount(rollersCount);
public DrawingTriDecks(int decksCount, Color bodyColor) {
setDecksCount(decksCount);
color = bodyColor;
}

View File

@ -22,7 +22,7 @@ public class FormMap extends JFrame {
private Image bufferedImage;
public FormMap() {
this.setTitle("Artillery");
this.setTitle("Ship");
this.setContentPane(shipPane);
_abstractMap = new SimpleMap();