Uses of Class
ch.aplu.jcardgame.Card

Packages that use Card
ch.aplu.jcardgame Addon package of the JDroidLib framework for developing card game applications. 
 

Uses of Card in ch.aplu.jcardgame
 

Fields in ch.aplu.jcardgame declared as Card
 Card[][] Deck.cards
          Public array of all cards in this deck in the order cards[suitId][rankId].
 

Methods in ch.aplu.jcardgame that return Card
 Card Card.clone()
          Deep copy of a card with same attributes, including the card actor, but is handless (getHand() returns null).
 Card Card.cloneAndAdd()
          Same as cloneAndAdd(double rotationAngle) with rotationAngle of current card.
 Card Card.cloneAndAdd(double rotationAngle)
          Deep copy of a card with same attributes, including the card actor, but is handless (getHand() returns null).
 Card Hand.get(int i)
          Returns card reference of the card at index i of the card list or null if the hand is empty.
 Card CardActor.getCard()
          Return the card the current card actor belongs to.
 Card Hand.getCard(int cardNumber)
          Returns card reference of card in this hand with given card number.
<T extends java.lang.Enum<T>,R extends java.lang.Enum<R>>
Card
Hand.getCard(T suit, R rank)
          Returns card reference of the card in this hand with given suit and rank.
 Card Hand.getFirst()
          Returns card reference of the first card or null if the hand is empty.
 Card Hand.getLast()
          Returns card reference of the last card or null if the hand is empty.
 Card Hand.reverse(boolean doDraw)
          Reverses the order of the cards in the card list.
 Card Hand.reverseSort(Hand.SortType sortType, boolean doDraw)
          Sorts the card list with given sort type and reverses the list.
 Card Hand.shift(boolean forward, boolean doDraw)
          Shifts (rolls) the card list forward or backward.
 Card Hand.shuffle(boolean doDraw)
          Shuffles the card list (random permutation of cards).
 Card Hand.sort(Hand.SortType sortType, boolean doDraw)
          Sorts the card list with given sort type.
 

Methods in ch.aplu.jcardgame that return types with arguments of type Card
 java.util.ArrayList<Card> Hand.getCardList()
          Returns the card list of the current hand.
<R extends java.lang.Enum<R>>
java.util.ArrayList<Card>
Hand.getCardsWithRank(R rank)
          Returns a list containing the card references of all cards with given rank.
<T extends java.lang.Enum<T>>
java.util.ArrayList<Card>
Hand.getCardsWithSuit(T suit)
          Returns a list containing the card references of all cards with given suit.
 

Methods in ch.aplu.jcardgame with parameters of type Card
 void CardAdapter.atTarget(Card card, Location targetLocation)
          Triggered when a card arrives a the target after a card transfer.
 void CardListener.atTarget(Card card, Location targetLocation)
          Triggered when a card arrives a the target after a card transfer.
 void CardAdapter.clicked(Card card)
          Triggered when a card is clicked.
 void CardListener.clicked(Card card)
          Triggered when a card is clicked.
 boolean Hand.contains(Card card)
          Returns true, if the a card with same suit and rank is found in the card list of current hand.
 void CardAdapter.doubleClicked(Card card)
          Triggered when a card is double clicked.
 void CardListener.doubleClicked(Card card)
          Triggered when a card is double clicked.
 boolean Hand.insert(Card card, boolean doDraw)
          Inserts the given card in the current hand (reference copy) and sets the hand of the given card to the current hand.
 void CardAdapter.longPressed(Card card)
          Triggered when a card is long pressed.
 void CardListener.longPressed(Card card)
          Triggered when a card is long pressed.
 void CardAdapter.pressed(Card card)
          Triggered when a card is pressed.
 void CardListener.pressed(Card card)
          Triggered when a card is pressed.
 void Hand.putOnTop(Card topCard)
          Draws the given card above each other card (on top) in this hand and rearrages the hand appearence so that all card are shown.
 void CardAdapter.released(Card card)
          Triggered when a card is released.
 void CardListener.released(Card card)
          Triggered when a card is released.
 boolean Hand.remove(Card card, boolean doDraw)
          Removes card from the current 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 Hand.transferNonBlocking(Card card, Hand targetHand, boolean doDraw)
          Same as transfer(card, targetHand, doDraw), but the methods returs immediately.