org.ninm.games.cardgames
Interface Deck

All Known Implementing Classes:
DefaultDeck

public interface Deck

This interface must be implemented by the game.

Version:
1.0
Author:
Nikolay

Method Summary
 Card dealCard()
          randomly removes a card from the deck and deals it out
 void returnCard(Card card)
          returns the card to the deck
 int size()
          returns the number of cards left in the deck
 

Method Detail

dealCard

public Card dealCard()
randomly removes a card from the deck and deals it out

Returns:
Card

size

public int size()
returns the number of cards left in the deck

Returns:
int the number of cards left in the deck

returnCard

public void returnCard(Card card)
returns the card to the deck

Parameters:
card - the card to be returned to the deck

SourceForge.net Logo