lab finish

This commit is contained in:
Danil Markov 2022-12-02 00:26:12 +04:00
parent 1a429fadb5
commit 8e943c67b0
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import javax.swing.*;
import java.awt.*;
public class DrawingTrapezoidDeck extends JComponent implements IAdditionalDrawingObject{
public class DrawingOvalDeck extends JComponent implements IAdditionalDrawingObject{
private AdditionalEnum _decksEnum;
@Override
public void SetAddEnum(int decksAmount) {

View File

@ -17,10 +17,10 @@ public class DrawingShip extends JPanel {
Deck = new DrawingDeck();
}
if (numbEnum == 2) {
Deck = new DrawingTrapezoidDeck();
Deck = new DrawingOvalDeck();
}
if (numbEnum == 3) {
Deck=new DrawingTriangleDeck();
Deck=new DrawingTrapezDeck();
}
}
public EntityShip GetShip() {

View File

@ -1,6 +1,6 @@
import javax.swing.*;
import java.awt.*;
public class DrawingTriangleDeck extends JComponent implements IAdditionalDrawingObject{
public class DrawingTrapezDeck extends JComponent implements IAdditionalDrawingObject{
private AdditionalEnum _decksEnum;
@Override
public void SetAddEnum(int decksAmount) {