mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixup! program towards Interface rather than implementations
This commit is contained in:
parent
bfcad77ad3
commit
855a9cc427
4 changed files with 8 additions and 4 deletions
|
@ -35,6 +35,7 @@ import java.awt.event.MouseAdapter;
|
|||
import java.awt.event.MouseEvent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
|
@ -202,7 +203,7 @@ public class TestCardRenderDialog extends MageDialog {
|
|||
Player playerOpponent = new StubPlayer("player2", RangeOfInfluence.ALL);
|
||||
game.addPlayer(playerOpponent, deck);
|
||||
|
||||
java.util.List<CardView> cardViews = new ArrayList<>();
|
||||
List<CardView> cardViews = new ArrayList<>();
|
||||
///*
|
||||
cardViews.add(createPermanentCard(game, playerYou.getId(), "RNA", "263", 0, 0, 0, false)); // mountain
|
||||
cardViews.add(createPermanentCard(game, playerYou.getId(), "RNA", "185", 0, 0, 0, true)); // Judith, the Scourge Diva
|
||||
|
|
|
@ -14,6 +14,7 @@ import javax.swing.border.EmptyBorder;
|
|||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import static mage.client.game.FeedbackPanel.FeedbackMode.QUESTION;
|
||||
|
@ -308,7 +309,7 @@ public class HelperPanel extends JPanel {
|
|||
this.buttonGrid.setLayout(new FlowLayout(FlowLayout.CENTER, BUTTONS_H_GAP, 0));
|
||||
this.buttonGrid.setPreferredSize(null);
|
||||
|
||||
java.util.List<JButton> buttons = new ArrayList<>();
|
||||
List<JButton> buttons = new ArrayList<>();
|
||||
if (this.btnSpecial.isVisible()) {
|
||||
buttons.add(this.btnSpecial);
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import org.mage.card.arcane.UI;
|
|||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import static mage.client.dialog.PreferencesDialog.KEY_MAGE_PANEL_LAST_SIZE;
|
||||
|
@ -38,7 +39,7 @@ public final class GuiDisplayUtil {
|
|||
this.basicTextLength = basicTextLength;
|
||||
}
|
||||
|
||||
public java.util.List<String> getLines() {
|
||||
public List<String> getLines() {
|
||||
return lines;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import java.awt.*;
|
|||
import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Deque;
|
||||
import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
@ -30,7 +31,7 @@ public final class TextboxRuleParser {
|
|||
// the textbox of a card.
|
||||
public static TextboxRule parse(CardView source, String rule) {
|
||||
// List of regions to apply
|
||||
java.util.List<TextboxRule.AttributeRegion> regions = new ArrayList<>();
|
||||
List<TextboxRule.AttributeRegion> regions = new ArrayList<>();
|
||||
|
||||
// Leveler / loyalty / basic
|
||||
boolean isLeveler = false;
|
||||
|
|
Loading…
Reference in a new issue