aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/decks/Deck.java
blob: 7a7b819168c3bcda581ab715caefb04be89f50fd (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.Collections;
import java.util.HashMap;
import java.util.Map;

public abstract class Deck {
	public String name = "Unnamed Deck";
	public int plains = 0,
			islands = 0,
			swamps = 0,
			mountains = 0,
			forests = 0;

	private Map<Integer, Integer> cardReferences = new HashMap<Integer, Integer>();
	
	public void addCard(Integer cardHash, Integer count) {
		cardReferences.put(cardHash, count);
	}
	
	public Map<Integer, Integer> getCardReferences() {
		return Collections.unmodifiableMap(cardReferences);
	}
}