aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2015-12-13 11:12:48 +0100
committerEduardo Pedroni <e.pedroni91@gmail.com>2015-12-13 11:12:48 +0100
commitd8f9c7946cabe1ce5c92d76495c790f92014be95 (patch)
treec9a6bb534ed44f837a0ee757cb70b8ef21cfdc51 /src/eu/equalparts/cardbase
parent848b6b82eb318abcf4eeb2054bcb79bb2dd51bab (diff)
Looking into a way to fix the count issue
Diffstat (limited to 'src/eu/equalparts/cardbase')
-rw-r--r--src/eu/equalparts/cardbase/CardEntry.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/eu/equalparts/cardbase/CardEntry.java b/src/eu/equalparts/cardbase/CardEntry.java
new file mode 100644
index 0000000..c4a4c94
--- /dev/null
+++ b/src/eu/equalparts/cardbase/CardEntry.java
@@ -0,0 +1,25 @@
+package eu.equalparts.cardbase;
+
+import eu.equalparts.cardbase.cards.Card;
+
+/**
+ * The purpose of this class is to hold a single {@code Card} object but
+ * also all associated metadata, such as count.
+ *
+ * @author Eduardo Pedroni
+ *
+ */
+public class CardEntry {
+
+ private final Card card;
+ public int count;
+
+ public CardEntry(Card card, int count) {
+ this.card = card;
+ this.count = count;
+ }
+
+ public Card card() {
+ return card;
+ }
+}