Uses of Class
inonit.domain.game.card.Card

Packages that use Card
inonit.domain.game.card A set of classes representing constructs commonly used in card games. 
inonit.domain.game.card.hearts Classes related to the card game Hearts. 
inonit.domain.game.card.hearts.ai An abstract Intelligence implementation and associated classes which represent current Game state. 
 

Uses of Card in inonit.domain.game.card
 

Fields in inonit.domain.game.card declared as Card
static Card Card.TWO_CLUBS
           
static Card Card.THREE_CLUBS
           
static Card Card.FOUR_CLUBS
           
static Card Card.FIVE_CLUBS
           
static Card Card.SIX_CLUBS
           
static Card Card.SEVEN_CLUBS
           
static Card Card.EIGHT_CLUBS
           
static Card Card.NINE_CLUBS
           
static Card Card.TEN_CLUBS
           
static Card Card.JACK_CLUBS
           
static Card Card.QUEEN_CLUBS
           
static Card Card.KING_CLUBS
           
static Card Card.ACE_CLUBS
           
static Card Card.TWO_DIAMONDS
           
static Card Card.THREE_DIAMONDS
           
static Card Card.FOUR_DIAMONDS
           
static Card Card.FIVE_DIAMONDS
           
static Card Card.SIX_DIAMONDS
           
static Card Card.SEVEN_DIAMONDS
           
static Card Card.EIGHT_DIAMONDS
           
static Card Card.NINE_DIAMONDS
           
static Card Card.TEN_DIAMONDS
           
static Card Card.JACK_DIAMONDS
           
static Card Card.QUEEN_DIAMONDS
           
static Card Card.KING_DIAMONDS
           
static Card Card.ACE_DIAMONDS
           
static Card Card.TWO_SPADES
           
static Card Card.THREE_SPADES
           
static Card Card.FOUR_SPADES
           
static Card Card.FIVE_SPADES
           
static Card Card.SIX_SPADES
           
static Card Card.SEVEN_SPADES
           
static Card Card.EIGHT_SPADES
           
static Card Card.NINE_SPADES
           
static Card Card.TEN_SPADES
           
static Card Card.JACK_SPADES
           
static Card Card.QUEEN_SPADES
           
static Card Card.KING_SPADES
           
static Card Card.ACE_SPADES
           
static Card Card.TWO_HEARTS
           
static Card Card.THREE_HEARTS
           
static Card Card.FOUR_HEARTS
           
static Card Card.FIVE_HEARTS
           
static Card Card.SIX_HEARTS
           
static Card Card.SEVEN_HEARTS
           
static Card Card.EIGHT_HEARTS
           
static Card Card.NINE_HEARTS
           
static Card Card.TEN_HEARTS
           
static Card Card.JACK_HEARTS
           
static Card Card.QUEEN_HEARTS
           
static Card Card.KING_HEARTS
           
static Card Card.ACE_HEARTS
           
 

Methods in inonit.domain.game.card that return Card
 Card CardArray.get(int index)
          Returns the Card at the given index in this CardArray.
 Card[] CardArray.get()
          Returns an array containing the Cards in this CardArray.
static Card Card.get(Rank rank, Suit suit)
          Returns a Card object of the given Rank and Suit.
 

Methods in inonit.domain.game.card with parameters of type Card
 CardArray CardArray.remove(Card card)
          Removes at most one instance (the first) of the given Card from this CardArray.
 CardArray CardArray.add(Card card)
          Appends the given Card to the end of this CardArray.
 boolean CardArray.contains(Card card)
          Returns whether this CardArray contains the given Card.
 boolean Card.isSameRankAs(Card card)
          Returns whether the given Card and this Card have the same Rank.
 boolean Card.isSameSuitAs(Card card)
          Returns whether the given Card and this Card have the same Suit.
protected abstract  Sort.Action Card.Order.compare(Card one, Card two)
          Should return the correct Sort.Action to take when comparing Cards.
 

Constructors in inonit.domain.game.card with parameters of type Card
CardArray(Card[] cards)
          Creates a new CardArray, initialized with the given Cards.
 

Uses of Card in inonit.domain.game.card.hearts
 

Methods in inonit.domain.game.card.hearts that return Card
 Card Intelligence.getPlay()
          Invoked to ask this Intelligence to play a Card.
 Card Intelligence.Play.getCard()
          Returns the card played.
 

Methods in inonit.domain.game.card.hearts with parameters of type Card
 void Rules.checkLegalPlay(CardArray[] previousTricks, CardArray currentTrick, CardArray hand, Card card)
           
 boolean Intelligence.Game.Rules.isLegalPlay(CardArray[] previousTricks, CardArray currentTrick, CardArray hand, Card card)
          Returns whether a particular Card would be a legal play for a player under these Rules, given the situation defined by the previousTricks, currentTrick, and hand arguments.
 int Intelligence.Pass.getPlayer(Card card)
          Returns the player to/from whom a particular Card was passed.
 

Uses of Card in inonit.domain.game.card.hearts.ai
 

Methods in inonit.domain.game.card.hearts.ai that return Card
abstract  Card AbstractIntelligence.getPlay()
          Should return the Card this AbstractIntelligence wishes to play.
 Card Trick.getCardPlayedBy(int index)
          Returns the Card played by the Intelligence at the given player index on this Trick, or null if the Intelligence at index has not played a Card on this Trick yet.
 Card Pass.getCard(int index)
          Returns the card at a particular index position in this pass.
 

Methods in inonit.domain.game.card.hearts.ai with parameters of type Card
protected  void AbstractIntelligence.cardPlayedEvent(int player, Card card)
          The default implementation of this method does nothing.
protected  boolean AbstractIntelligence.isHigher(Card one, Card two)
          Returns whether the first Card is higher than the second, by Rank only.
protected  boolean AbstractIntelligence.isLower(Card one, Card two)
          Returns whether the first Card is lower than the second, by Rank only.
protected  boolean AbstractIntelligence.isHigher(Card card, Rank rank)
          Returns whether the given Card is higher than the given Rank.
protected  boolean AbstractIntelligence.isLower(Card card, Rank rank)
          Returns whether the given Card is lower than the given Rank.
protected  boolean AbstractIntelligence.isSameSuit(Card one, Card two)
          Returns whether the given two Cards are of the same suit.
protected  int AbstractIntelligence.getValue(Card card)
          Returns the point (scoring) value (as determined by Rules.getValue(CardArray) of the given Card in the current Game.