aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/decks/ReferenceDeck.java
blob: 2303f24ad105970c7853b70c49ed2f69d439a372 (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;

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;
		
		// TODO sort this out
		for (Card card : deck.cards) {
			cardReferences.put(card.hashCode(), 1);
		}
	}
	
}