Holger's
Java API

com.antelmann.game.card
Class CardDeck

java.lang.Object
  extended by 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)
           
 
Method Summary
 void addCard(Card c)
           
 void addDeck(CardDeck deck)
           
 int cardsLeft()
           
 Object clone()
           
 void shuffle()
           
 void shuffle(Random rnd)
           
 Card takeCard()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardDeck

public CardDeck(int numberOfDecks,
                boolean bigDeck,
                boolean shuffled)
Method Detail

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