inonit.domain.game.card.hearts
Interface Intelligence.Hand

Enclosing class:
Intelligence

public static interface Intelligence.Hand

An object which can provide information to Intelligence objects about a hand in which they are participating.


Method Summary
 CardArray getDeal()
          Returns the cards dealt to this Intelligence.
 int getPassSize()
          Returns the number of cards to be passed in this Hand.
 int[] getScores()
          Returns the scores recorded for this hand.
 

Method Detail

getDeal

public CardArray getDeal()
Returns the cards dealt to this Intelligence.
Returns:
A CardArray containing the cards dealt to this Intelligence.

getPassSize

public int getPassSize()
Returns the number of cards to be passed in this Hand.
Returns:
The number of cards to be passed in this hand. If this hand is a "hold" hand, this value is unspecified.

getScores

public int[] getScores()
Returns the scores recorded for this hand. If the hand is not yet complete, the return value is unspecified.
Returns:
An array of int containing the scores for each player in this hand. The scores will be stored in relative index order; element zero will be this Intelligence's score, element one will be the score of the Intelligence to its left, and so on.