Blackjack

com.amoebacode.blackjack.core
Interface IDeck

All Superinterfaces:
ICardCollection, IGameObject
All Known Implementing Classes:
Deck

public interface IDeck
extends ICardCollection

IDeck defines the standard API for a deck of cards.

Version:
0.9
Author:
Jason Gurney

Method Summary
 double getNumberOfDecks()
          Returns the current number of decks remaining, rounded to the nearest half-deck.
 boolean shouldShuffle()
          Indicates whether this deck should be shuffled before beginning the next round.
 
Methods inherited from interface com.amoebacode.blackjack.core.ICardCollection
addCard, getCardAt, getNextCard, getNumberOfCards, setCards
 
Methods inherited from interface com.amoebacode.blackjack.core.IGameObject
addEventListener, getGame, getParent
 

Method Detail

getNumberOfDecks

public double getNumberOfDecks()
Returns the current number of decks remaining, rounded to the nearest half-deck.
Returns:
the number of decks remaining

shouldShuffle

public boolean shouldShuffle()
Indicates whether this deck should be shuffled before beginning the next round.
Returns:
true if the deck should be shuffled

Blackjack

Copyright © 2002 amoebacode.com.