com.antelmann.game.card
Class CardDeck
java.lang.Object
com.antelmann.game.card.CardDeck
- All Implemented Interfaces:
- Serializable, Cloneable
public class CardDeck
- extends Object
- implements Cloneable, Serializable
represents a stack of cards
- Author:
- Holger Antelmann
- See Also:
- Serialized Form
|
Constructor Summary |
CardDeck(int numberOfDecks,
boolean bigDeck,
boolean shuffled)
|
CardDeck
public CardDeck(int numberOfDecks,
boolean bigDeck,
boolean shuffled)
takeCard
public Card takeCard()
cardsLeft
public int cardsLeft()
shuffle
public void shuffle()
shuffle
public void shuffle(Random rnd)
addCard
public void addCard(Card c)
addDeck
public void addDeck(CardDeck deck)
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class Object
- Throws:
CloneNotSupportedException
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads