|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use CardArray | |
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 CardArray in inonit.domain.game.card |
Methods in inonit.domain.game.card that return CardArray | |
static CardArray |
CardArray.combine(CardArray[] arrays)
Returns the aggregation of the given CardArray s. |
CardArray |
CardArray.get(Suit suit)
Returns a CardArray containing the Card s in this CardArray which are of the given
Suit . |
CardArray |
CardArray.remove(Card card)
Removes at most one instance (the first) of the given Card from this CardArray . |
CardArray |
CardArray.remove(CardArray array)
Removes all of the Card s in the given CardArray from this CardArray . |
CardArray |
CardArray.add(Card card)
Appends the given Card to the end of this CardArray . |
CardArray |
CardArray.add(CardArray array)
Appends the Card s (if any) in the given CardArray to the end of this CardArray . |
CardArray |
CardArray.copy()
Returns a copy of this CardArray . |
CardArray |
CardArray.sort(Sort.Order order)
Sorts the Card s in this CardArray into the given Sort.Order . |
CardArray |
CardArray.shuffle()
Shuffles the Card s in this CardArray into random order. |
static CardArray |
CardArray.intersection(CardArray[] arrays)
Returns a CardArray containing all of the Card s that are found in all the
argument CardArray s. |
Methods in inonit.domain.game.card with parameters of type CardArray | |
static CardArray |
CardArray.combine(CardArray[] arrays)
Returns the aggregation of the given CardArray s. |
CardArray |
CardArray.remove(CardArray array)
Removes all of the Card s in the given CardArray from this CardArray . |
CardArray |
CardArray.add(CardArray array)
Appends the Card s (if any) in the given CardArray to the end of this CardArray . |
boolean |
CardArray.containsAll(CardArray array)
Returns whether this CardArray contains all of the Card s in the given
CardArray . |
boolean |
CardArray.containsOne(CardArray array)
Returns whether this CardArray contains at least one Card which is also contained in the
given CardArray . |
static CardArray |
CardArray.intersection(CardArray[] arrays)
Returns a CardArray containing all of the Card s that are found in all the
argument CardArray s. |
Uses of CardArray in inonit.domain.game.card.hearts |
Methods in inonit.domain.game.card.hearts that return CardArray | |
CardArray |
Rules.getDeck()
|
CardArray |
Rules.getTakeAllCards()
|
CardArray |
Intelligence.getPass()
Invoked to ask this Intelligence for Card s to pass to another player. |
CardArray |
Intelligence.Game.Rules.getDeck()
Returns the deck that will be used. |
CardArray |
Intelligence.Game.Rules.getTakeAllCards()
Returns the set of Card s which must be taken by a single player in order to execute a take-all. |
CardArray |
Intelligence.Hand.getDeal()
Returns the cards dealt to this Intelligence . |
CardArray |
Intelligence.Pass.getCards()
Returns the set of cards that was passed. |
CardArray |
Intelligence.Kitty.getCards()
Returns the cards that were in the kitty, if this Intelligence is permitted to see them. |
Methods in inonit.domain.game.card.hearts with parameters of type CardArray | |
void |
Rules.checkLegalPlay(CardArray[] previousTricks,
CardArray currentTrick,
CardArray hand,
Card card)
|
int |
Rules.getValue(CardArray array)
|
boolean |
Rules.triggersKitty(CardArray trick)
|
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.Game.Rules.getValue(CardArray cards)
Returns the total point (scoring) value of the cards in the given CardArray , as if they were the cards
taken in a particular hand. |
Uses of CardArray in inonit.domain.game.card.hearts.ai |
Methods in inonit.domain.game.card.hearts.ai that return CardArray | |
CardArray |
Kitty.getCards()
Returns a copy of the CardArray containing the Card s in this Kitty ,
or null if this
AbstractIntelligence is not allowed to see them. |
CardArray |
AbstractIntelligence.getPass()
|
abstract CardArray |
AbstractIntelligence.getPass(int numberToPass)
Should return a CardArray containing the number of cards indicated by the numberToPass
argument. |
protected CardArray |
AbstractIntelligence.getCards()
Returns the Card s currently in this AbstractIntelligence 's hand. |
protected CardArray |
AbstractIntelligence.getLegalPlays()
Returns a CardArray containing the Card s which would be legal to play if this
AbstractIntelligence is playing next. |
CardArray |
Trick.getCards()
Returns a new CardArray containing the Card s, in order, which have been played in this
Trick . |
CardArray |
Hand.getHandDealt()
Returns a copy of the CardArray that was dealt to this AbstractIntelligence during this
Hand . |
CardArray |
Hand.getPassSent()
Returns a copy of the pass sent to another player during the pass stage of this Hand . |
CardArray |
Hand.getPassReceived()
Returns a copy of the pass received from another player during the pass stage of this Hand . |
CardArray |
Rules.getDeck()
Returns the deck under these rules. |
CardArray |
Rules.getTakeAllCards()
Returns the set of cards required for a take-all under these rules. |
CardArray |
Pass.getCards()
Returns the set of cards included in this pass. |
Methods in inonit.domain.game.card.hearts.ai with parameters of type CardArray | |
protected void |
AbstractIntelligence.handDealtEvent(CardArray hand)
The default implementation of this method does nothing. |
protected void |
AbstractIntelligence.tookKittyEvent(CardArray kitty)
The default implementation of this method does nothing. |
protected int |
AbstractIntelligence.getValue(CardArray cards)
Returns the point (scoring) value (as determined by Rules.getValue
of the given CardArray in the current Game . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |