aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/data/FullCardSet.java
blob: 48488b53fb8a6ebf653925e287a8bb4fc6a624dc (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package eu.equalparts.cardbase.data;

import java.util.ArrayList;

public class FullCardSet extends CardSet {
	
	private String border;
	private String type;
	private String block;
	private String gathererCode;
	private ArrayList<Card> cards;

	/**
	 * @return the border
	 */
	public String getBorder() {
		return border;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @return the block
	 */
	public String getBlock() {
		return block;
	}

	/**
	 * @return the gathererCode
	 */
	public String getGathererCode() {
		return gathererCode;
	}

	/**
	 * @return the cards
	 */
	public ArrayList<Card> getCards() {
		return cards;
	}

	/**
	 * Searches for a card by number (the one shown on the card itself).
	 * 
	 * @param number the number of the card to search.
	 * @return the card, or null if no card is found with that number.
	 */
	public Card getCardByNumber(String number) {
		for (Card card : cards) {
			if (card.number.equals(number)) 
				return card;
		}
		return null;
	}
}