inonit.domain.game.card.hearts
Interface Intelligence.Pass
- Enclosing class:
- Intelligence
- public static interface Intelligence.Pass
An object containing information about a particular set of cards that was passed.
Method Summary |
CardArray |
getCards()
Returns the set of cards that was passed. |
int |
getPlayer(Card card)
Returns the player to/from whom a particular Card was passed. |
getCards
public CardArray getCards()
- Returns the set of cards that was passed.
- Returns:
- A
CardArray
containing the set of cards that was passed.
getPlayer
public int getPlayer(Card card)
- Returns the player to/from whom a particular
Card
was passed. The card
argument
should be obtained from the CardArray
returned from getCards
. In the event
that a different Card
is passed to this method, the return value is undefined.
- Parameters:
card
- A Card
from the CardArray
obtained from getCards
.- Returns:
- The
int
relative index of the player
to/from whom card
was passed.