blob: 9e8695b24fc849bbe90f89edee66e1b8f7c570ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package eu.equalparts.cardbase.decks;
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 ReferenceDeck() {
}
public ReferenceDeck(StandaloneDeck deck) {
this.name = deck.name;
this.plains = deck.plains;
this.islands = deck.islands;
this.swamps = deck.swamps;
this.mountains = deck.mountains;
this.forests = deck.forests;
for (Card card : deck.cards) {
cardReferences.put(UID.makeHash(card), card.count);
}
}
}
|