Skip to content

Commit

Permalink
Solved PMD's
Browse files Browse the repository at this point in the history
  • Loading branch information
bagarozzi committed Jul 8, 2024
1 parent 3c8ade0 commit 0575c42
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ public final class BombarderoGraphics implements GraphicsEngine {
private final JPanel deck;
private final CardLayout layout = new CardLayout();

private final GamePlayCard gameCard;
private final GamePlayCard guideCard;
private final MenuCard menuCard;
private ViewCards currentCard;
private final Map<ViewCards, GamePlayCard> cardsMap = new HashMap<>();

Expand All @@ -58,9 +55,9 @@ public BombarderoGraphics(final Controller controller) {
frame.setLocationRelativeTo(null);
frame.setIconImage(gameIconImage.getScaledInstance(64, 64, Image.SCALE_SMOOTH));

menuCard = new MenuCard(controller, this, resourceGetter);
this.guideCard = new GuideCard(controller, this, Map.of(), List.of(), List.of());
this.gameCard = new GameCard(controller, this);
MenuCard menuCard = new MenuCard(controller, this, resourceGetter);
GamePlayCard guideCard = new GuideCard(controller, this, Map.of(), List.of(), List.of());
GamePlayCard gameCard = new GameCard(controller, this);

deck.add(ViewCards.GUIDE.getStringId(), guideCard);
layout.addLayoutComponent(guideCard, ViewCards.GUIDE.getStringId());
Expand Down

0 comments on commit 0575c42

Please sign in to comment.