|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Hand | |
---|---|
ch.aplu.jcardgame | Addon package of the JDroidLib framework for developing card game applications. |
Uses of Hand in ch.aplu.jcardgame |
---|
Methods in ch.aplu.jcardgame that return Hand | ||
---|---|---|
Hand[] |
Deck.dealingOut(int nbPlayers,
int nbCardsPerPlayer)
Same as dealingOut(nbPlayers, nbCardsPerPlayer, shuffle) with shuffle = true. |
|
Hand[] |
Deck.dealingOut(int nbPlayers,
int nbCardsPerPlayer,
boolean shuffle)
Returns an array with nbPlayers + 1 hands. |
|
|
Hand.extractCardsWithRank(R rank)
Returns a hand containing card clones from card of the current hand that have the given rank. |
|
|
Hand.extractCardsWithSuit(T suit)
Returns a hand containing card clones from card of the current hand that have the given suit. |
|
Hand[] |
Hand.extractPairs()
Returns all hands with pairs (two cards with same rank) found in the current hand. |
|
Hand[] |
Hand.extractQuads()
Returns all hands with quads (four cards with same rank) found in the current hand. |
|
Hand[] |
Hand.extractSequences(int length)
Returns all sequences found in the current hand with mixed suits with given length (>2). |
|
|
Hand.extractSequences(T suit,
int length)
Returns all sequences found in the current hand that have given suit with given length (>2). |
|
Hand[] |
Hand.extractTrips()
Returns all hands with trips (three cards with same rank) found in the current hand. |
|
Hand |
Card.getHand()
Returns the hand the card belongs to. |
|
Hand |
Deck.toHand()
Returns the complete shuffled deck as a hand. |
|
Hand |
Deck.toHand(boolean shuffle)
Returns the complete deck as a hand. |
Methods in ch.aplu.jcardgame with parameters of type Hand | |
---|---|
boolean |
Hand.insert(Hand hand,
boolean doDraw)
Inserts all cards of the given hand in the current hand (reference copy) and sets the hand of the cards to the current hand. |
boolean |
Card.isInHand(Hand hand)
Returns true, if the current card is part of the given hand. |
static void |
Hand.randomBatchTransfer(int nb,
Hand source,
Hand target,
boolean doDraw)
Moves a randomly selected batch of cards from the source hand to the target hand. |
void |
Hand.transfer(Card card,
Hand targetHand,
boolean doDraw)
Transfers the card from the current hand to the given target hand using the currently defined target area. |
void |
Card.transfer(Hand targetHand,
boolean doDraw)
Animated or non-animated transfer from current hand to new hand using the currently defined target area. |
void |
Hand.transferNonBlocking(Card card,
Hand targetHand,
boolean doDraw)
Same as transfer(card, targetHand, doDraw), but the methods returs immediately. |
void |
Card.transferNonBlocking(Hand targetHand,
boolean doDraw)
Same as transfer(targetHand, doDraw), but the methods returns immediately. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |