From 2de3bf57cd21d5cf60723fca59f61d3bc69578dd Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Wed, 22 Jul 2015 12:34:32 +0200 Subject: Finished basic Cardbase tests, doing CLI next --- src/eu/equalparts/cardbase/decks/ReferenceDeck.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/eu/equalparts/cardbase/decks') 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 cardReferences = new HashMap(); + public Map cardReferences = new HashMap(); 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); } } -- cgit v1.2.3