Skip to content

Commit

Permalink
;lkj
Browse files Browse the repository at this point in the history
  • Loading branch information
lTheMightyMl committed May 7, 2019
1 parent eb2a187 commit 8e12c0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/menus/GameMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private static boolean checkAccount() {
return true;
}
if (!getAccount().getMainDeck().isValid()) {
view.showInvalidDeckError();
view.showInvalidMainDeckError();
return true;
}
return false;
Expand All @@ -145,7 +145,7 @@ public static boolean startGame(String deckName, int mode, int numberOfFlags) {
return false;
}
if (!getAccount().getDeck(deckName).isValid()) {
view.showInvalidDeckError();
view.showInvalidMainDeckError();
return false;
}
if (checkGameParameters(mode, numberOfFlags)) return false;
Expand Down
5 changes: 5 additions & 0 deletions src/view/CommandLineView.java
Original file line number Diff line number Diff line change
Expand Up @@ -501,4 +501,9 @@ public void alertCPUWin() {
public void showInvalidTargetError() {
System.out.println("Invalid target");
}

@Override
public void showInvalidMainDeckError() {
System.out.println("Your main deck is invalid.");
}
}
2 changes: 2 additions & 0 deletions src/view/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,6 @@
void alertCPUWin();

void showInvalidTargetError();

void showInvalidMainDeckError();
}

0 comments on commit 8e12c0b

Please sign in to comment.