|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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 |
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 Card s 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 Card s. |
Constructors in inonit.domain.game.card with parameters of type Card | |
CardArray(Card[] cards)
Creates a new CardArray , initialized with the given Card s. |
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 Card s 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 . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |