blob: 5650d2f40c6f511a3ad5cdb59e21dc45aebd30e8 (
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
|
package eu.equalparts.cardbase.decks;
import java.util.HashMap;
import java.util.Map;
import eu.equalparts.cardbase.cards.Card;
public class ReferenceDeck extends Deck {
public Map<Integer, Integer> cardReferences = new HashMap<Integer, 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(card.hashCode(), card.count);
}
}
}
|