| Package | Description |
|---|---|
| com.threerings.parlor.card.client |
| Modifier and Type | Class and Description |
|---|---|
class |
MicroCardSprite |
| Modifier and Type | Method and Description |
|---|---|
CardSprite |
CardPanel.getHandSprite(Card card)
Returns the first sprite in the hand that corresponds to the specified card, or null if the
card is not in the hand.
|
CardSprite |
CardPanel.getSelectedHandSprite()
Returns the currently selected hand sprite (null if no sprites are selected, the first
sprite if multiple sprites are selected).
|
CardSprite[] |
CardPanel.getSelectedHandSprites()
Returns an array containing the currently selected hand sprites (returns an empty array if
no sprites are selected).
|
| Modifier and Type | Method and Description |
|---|---|
void |
CardSpriteObserver.cardSpriteClicked(CardSprite sprite,
MouseEvent me)
Notifies the observer that the user clicked a card sprite.
|
void |
CardPanel.CardSelectionObserver.cardSpriteDeselected(CardSprite sprite)
Called when a card has been deselected.
|
void |
CardSpriteObserver.cardSpriteDragged(CardSprite sprite,
MouseEvent me)
Notifies the observer that the user dragged a card sprite to a new
location.
|
void |
CardSpriteObserver.cardSpriteEntered(CardSprite sprite,
MouseEvent me)
Notifies the observer that the user moved the mouse pointer onto
a card sprite.
|
void |
CardSpriteObserver.cardSpriteExited(CardSprite sprite,
MouseEvent me)
Notifies the observer that the user moved the mouse pointer off of
a card sprite.
|
void |
CardPanel.CardSelectionObserver.cardSpriteSelected(CardSprite sprite)
Called when a card has been selected.
|
void |
CardPanel.deselectHandSprite(CardSprite sprite)
Programmatically deselects a sprite in the hand.
|
void |
CardPanel.flyFromBoard(CardSprite[] cards,
Point dest,
long flightDuration,
float fadePortion)
Flies a set of cards from the board into the ether.
|
void |
CardPanel.flyFromBoard(CardSprite[] cards,
Point dest1,
Point dest2,
long flightDuration,
float fadePortion)
Flies a set of cards from the board into the ether through an intermediate point.
|
void |
CardPanel.flyFromHand(CardSprite[] cards,
Point dest,
long flightDuration,
float fadePortion)
Flies a set of cards from the hand into the ether.
|
void |
CardPanel.flyFromHandToBoard(CardSprite card,
Point dest,
long flightDuration)
Flies a card from the hand onto the board.
|
void |
CardPanel.selectHandSprite(CardSprite sprite)
Programmatically selects a sprite in the hand.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CardPanel.setHandSelectionPredicate(Predicate<CardSprite> pred)
Sets the selection predicate that determines which cards from the hand may be selected (if
null, all cards may be selected).
|
Copyright © 2015. All rights reserved.