ch.aplu.jcardgame
Interface Deck.CardPoints
- Enclosing class:
- Deck
public static interface Deck.CardPoints
Interface for the construction of integer arrays with card points (values)
of each card in each suit. To setup the card points, implement this interface
by defining your own points() method. Pass the reference to the deck constructor.
The points() method may return different values during program execution
to reflect the change of card points.
Method Summary |
int[] |
points(java.lang.Enum suit)
Returns the points for cards of all ranks in a given suit. |
points
int[] points(java.lang.Enum suit)
- Returns the 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 points
- Returns:
- the points of all cards in this suit in the order
the rank enum defined