aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/cli
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2016-03-15 22:04:06 +0100
committerEduardo Pedroni <e.pedroni91@gmail.com>2016-03-15 22:04:06 +0100
commitf70899a487cf0cdc58b8f4e0efea98e8404766c8 (patch)
tree9d1df2575447bd9daa392d64d502401c53c9c6cd /src/eu/equalparts/cardbase/cli
parente36558c84c443b2236eb3dacd2e3f66981818232 (diff)
Refactor is coming along, just need to sort out the new file structure now
Diffstat (limited to 'src/eu/equalparts/cardbase/cli')
-rw-r--r--src/eu/equalparts/cardbase/cli/CardbaseCLI.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eu/equalparts/cardbase/cli/CardbaseCLI.java b/src/eu/equalparts/cardbase/cli/CardbaseCLI.java
index 8aece5d..b1a4028 100644
--- a/src/eu/equalparts/cardbase/cli/CardbaseCLI.java
+++ b/src/eu/equalparts/cardbase/cli/CardbaseCLI.java
@@ -337,7 +337,7 @@ public final class CardbaseCLI {
int total = 0;
for (Card card : cardbase.getCards()) {
printGlance(card);
- total += cardbase.getCount(card.setCode, card.number);
+ total += cardbase.getCount(card);
}
System.out.println("Total: " + total);
}
@@ -365,7 +365,7 @@ public final class CardbaseCLI {
int total = 0;
for (Card card : cardbase.getCards()) {
printPerusal(card);
- total += cardbase.getCount(card.setCode, card.number);
+ total += cardbase.getCount(card);
}
System.out.println("Total: " + total);
}
@@ -523,7 +523,7 @@ public final class CardbaseCLI {
* @param card the card to glance.
*/
private void printGlance(Card card) {
- System.out.println(String.format("%1$-4d %2$s (%3$s, %4$s)", cardbase.getCount(card.setCode, card.number), card.name, card.setCode, card.number));
+ System.out.println(String.format("%1$-4d %2$s (%3$s, %4$s)", cardbase.getCount(card), card.name, card.setCode, card.number));
}
/**