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

import java.util.Map.Entry;

public class ReferenceDeck extends Deck {
	
	public ReferenceDeck(String deckName) {
		this.name = deckName;
	}
	
	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 (Entry<Integer, Integer> entry : deck.getCardReferences().entrySet()) {
			getCardReferences().put(entry.getKey(), entry.getValue());
		}
	}
	
}