public class Deck extends Object
Constructor and Description |
---|
Deck() |
Modifier and Type | Method and Description |
---|---|
void |
addCard(Card c) |
void |
addCardSides(String front,
String back)
Add a new card to the deck by specifying its front and back side content.
|
Card |
getCard(int i)
Returns a single card by specifying its position within the deck.
|
List<String> |
getCardBackSideContent() |
List<String> |
getCardFrontSideContent() |
List<Card> |
getCards() |
List<String> |
getCardSideContent(int frontOrBack)
Returns the content of all front sides or all back sides of decks in the
deck.
|
void |
setCards(List<Card> cards) |
public void addCard(Card c)
public void addCardSides(String front, String back)
front
- front side contentback
- back side contentpublic List<String> getCardSideContent(int frontOrBack)
frontOrBack
- 0: front side, 1: back sidepublic Card getCard(int i)
i
- 0-based positionCopyright © 2013-2014. All Rights Reserved.