lab finish
This commit is contained in:
parent
1a429fadb5
commit
8e943c67b0
@ -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) {
|
@ -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() {
|
||||
|
@ -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) {
|
Loading…
Reference in New Issue
Block a user