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

Enclosing class:
Intelligence

public static interface Intelligence.Kitty

An object representing a "kitty" -- a set of leftover cards which is distributed to one of the players in a game in which the deck is not evenly divisible among the players.


Method Summary
 CardArray getCards()
          Returns the cards that were in the kitty, if this Intelligence is permitted to see them.
 int getPlayer()
          Returns the index of the player who took the kitty.
 int getSize()
          Returns the size of the kitty.
 

Method Detail

getPlayer

public int getPlayer()
Returns the index of the player who took the kitty.
Returns:
The relative index of the Intelligence which took the kitty.

getSize

public int getSize()
Returns the size of the kitty.
Returns:
The number of cards that were in this Kitty.

getCards

public CardArray getCards()
Returns the cards that were in the kitty, if this Intelligence is permitted to see them.
Returns:
A CardArray containing the cards that were in the kitty, or null if this Intelligence may not see them.