diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-07-22 12:34:32 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-07-22 12:34:32 +0200 |
commit | 2de3bf57cd21d5cf60723fca59f61d3bc69578dd (patch) | |
tree | fb2efa7507c25f80b9e05983dc6e1acb69861f16 /src/eu/equalparts/cardbase/decks | |
parent | 2227aaf4cdee9535dedc28d570d6fdf2d38d1fe3 (diff) |
Finished basic Cardbase tests, doing CLI next
Diffstat (limited to 'src/eu/equalparts/cardbase/decks')
-rw-r--r-- | src/eu/equalparts/cardbase/decks/ReferenceDeck.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/eu/equalparts/cardbase/decks/ReferenceDeck.java b/src/eu/equalparts/cardbase/decks/ReferenceDeck.java index 9e8695b..5650d2f 100644 --- a/src/eu/equalparts/cardbase/decks/ReferenceDeck.java +++ b/src/eu/equalparts/cardbase/decks/ReferenceDeck.java @@ -4,11 +4,10 @@ import java.util.HashMap; import java.util.Map; import eu.equalparts.cardbase.cards.Card; -import eu.equalparts.cardbase.utils.UID; public class ReferenceDeck extends Deck { - public Map<String, Integer> cardReferences = new HashMap<String, Integer>(); + public Map<Integer, Integer> cardReferences = new HashMap<Integer, Integer>(); public ReferenceDeck() { @@ -23,7 +22,7 @@ public class ReferenceDeck extends Deck { this.forests = deck.forests; for (Card card : deck.cards) { - cardReferences.put(UID.makeHash(card), card.count); + cardReferences.put(card.hashCode(), card.count); } } |