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 DecksCount deckCount;
private Color color; private Color color;
public DrawingDecks(int deckCount, Color bodyColor) { public DrawingDecks(int decksCount, Color bodyColor) {
setDecksCount(deckCount); setDecksCount(decksCount);
color = bodyColor; color = bodyColor;
} }

View File

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

View File

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

View File

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