ch.aplu.jcardgame
Interface Deck.CardValues

Enclosing class:
Deck

public static interface Deck.CardValues

Interface for the construction of integer arrays with card values (card points, card values) of each card in each suit. To setup the card values, implement this interface by defining your own values() method. Pass the reference to the deck constructor. The values() method may return different values during program execution to reflect the change of card values.


Method Summary
 int[] values(java.lang.Enum suit)
          Returns the card values (card points) for cards of all ranks in a given suit.
 

Method Detail

values

int[] values(java.lang.Enum suit)
Returns the card values (card points) for cards of all ranks in a given suit. The array size should correspond to the number of cards in a suit.

Parameters:
suit - the suit where to determine the card values
Returns:
the card values (card points) of all cards in this suit in the order the rank enum defined