- Fix some c/p errors in the Sealed Submenu

This commit is contained in:
Sol
2015-10-15 14:12:54 +00:00
parent 5aabcb5089
commit 1477009c03
2 changed files with 6 additions and 6 deletions

View File

@@ -134,14 +134,14 @@ public enum CSubmenuSealed implements ICDoc {
}
}
String duelType = (String)VSubmenuDraft.SINGLETON_INSTANCE.getCbOpponent().getSelectedItem();
String duelType = (String)VSubmenuSealed.SINGLETON_INSTANCE.getCbOpponent().getSelectedItem();
final DeckGroup opponentDecks = FModel.getDecks().getSealed().get(humanDeck.getName());
if (gauntlet) {
if ("Gauntlet".equals(duelType)) {
final int rounds = opponentDecks.getAiDecks().size();
FModel.getGauntletMini().launch(rounds, humanDeck.getDeck(), gameType);
} else if ("Tournament".equals(duelType)) {
// TODO Allow for tournament style draft, instead of always a gauntlet
// TODO Allow for tournament style sealed, instead of always a gauntlet
}
return;
}
@@ -158,7 +158,7 @@ public enum CSubmenuSealed implements ICDoc {
final int aiIndex = Integer.parseInt(duelType)-1;
final Deck aiDeck = opponentDecks.getAiDecks().get(aiIndex);
if (aiDeck == null) {
throw new IllegalStateException("Draft: Computer deck is null!");
throw new IllegalStateException("Sealed: Computer deck is null!");
}
final List<RegisteredPlayer> starter = new ArrayList<RegisteredPlayer>();
@@ -167,7 +167,7 @@ public enum CSubmenuSealed implements ICDoc {
starter.add(new RegisteredPlayer(aiDeck).setPlayer(GamePlayerUtil.createAiPlayer()));
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
hostedMatch.startMatch(GameType.Draft, null, starter, human, GuiBase.getInterface().getNewGuiGame());
hostedMatch.startMatch(GameType.Sealed, null, starter, human, GuiBase.getInterface().getNewGuiGame());
SwingUtilities.invokeLater(new Runnable() {
@Override
@@ -201,7 +201,7 @@ public enum CSubmenuSealed implements ICDoc {
return;
}
if (VSubmenuDraft.SINGLETON_INSTANCE.isSingleSelected()) {
if (VSubmenuSealed.SINGLETON_INSTANCE.isSingleSelected()) {
// Single opponent
final DeckGroup opponentDecks = FModel.getDecks().getSealed().get(humanDeck.getName());
int indx = 0;

View File

@@ -68,7 +68,7 @@ public enum VSubmenuSealed implements IVSubmenu<CSubmenuSealed> {
.fontSize(12).build();
private final FLabel lblDir3 = new FLabel.Builder()
.text("Then, you will play against each of the AI opponents.")
.text("Then, you may play against each of the AI opponents, or one of the opponents.")
.fontSize(12).build();
private final FLabel btnBuildDeck = new FLabel.ButtonBuilder().text("Build New Sealed Deck").fontSize(16).build();