| Modifier and Type | Method and Description |
|---|---|
Card |
CardSprite.getCard()
Returns the card being depicted.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CardPanel.addToBoard(Card card,
Point dest)
Adds a card to the board immediately.
|
void |
CardSprite.flip(Card newCard,
long duration)
Flip the card from its current displayed card to the specified card.
|
void |
CardPanel.flyAcross(Card[] cards,
Point src,
Point dest,
long flightDuration,
long cardDelay,
float fadePortion)
Flies a set of cards from the ether into the ether.
|
void |
CardPanel.flyIntoHand(Card[] cards,
Point src,
long flightDuration,
long pauseDuration,
long dropDuration,
float fadePortion)
Flies a set of cards from the ether into the hand.
|
void |
CardPanel.flyToBoard(Card card,
Point src,
Point dest,
long flightDuration,
float fadePortion)
Flies a card from the ether onto the board.
|
abstract com.threerings.media.image.Mirage |
CardPanel.getCardImage(Card card)
Returns the full-sized image for the front of the specified card.
|
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.
|
abstract com.threerings.media.image.Mirage |
CardPanel.getMicroCardImage(Card card)
Returns the small-sized image for the front of the specified card.
|
void |
CardGameReceiver.receivedCardsFromPlayer(int plidx,
Card[] cards)
Dispatched to the client when it has received a set of cards
from another player.
|
void |
CardGameController.receivedCardsFromPlayer(int plidx,
Card[] cards)
Dispatched to the client when it has received a set of cards from another player.
|
void |
CardGameReceiver.sentCardsToPlayer(int plidx,
Card[] cards)
Dispatched to the client when the server has forced it to send
a set of cards to another player.
|
void |
CardGameController.sentCardsToPlayer(int plidx,
Card[] cards)
Dispatched to the client when the server has forced it to send a set of cards to another
player.
|
void |
CardSprite.setCard(Card card)
Sets the card to depict.
|
| Constructor and Description |
|---|
CardSprite(CardPanel panel,
Card card)
Creates a new upward-facing card sprite.
|
CardSprite(CardPanel panel,
Card card,
boolean facingUp)
Creates a new card sprite.
|
MicroCardSprite(CardPanel panel,
Card card)
Creates a new upward-facing micro-card sprite.
|
MicroCardSprite(CardPanel panel,
Card card,
boolean facingUp)
Creates a new micro-card sprite.
|
| Modifier and Type | Field and Description |
|---|---|
Card |
PlayerCard.card
The card that the player played.
|
| Modifier and Type | Method and Description |
|---|---|
Card[] |
Hand.getCards()
Converts this list of cards into an array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Hand.addAll(Card[] cards)
Adds all of the specified cards to this hand.
|
int |
Card.compareTo(Card other)
Compares this card to another.
|
boolean |
Hand.containsAll(Card[] cards)
Checks whether this hand contains all of the specified cards.
|
void |
Hand.removeAll(Card[] cards)
Removes all of the specified cards from this hand.
|
| Constructor and Description |
|---|
PlayerCard(int pidx,
Card card)
Creates a new player card.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CardGameSender.sendCardsFromPlayer(com.threerings.presents.data.ClientObject target,
int arg1,
Card[] arg2)
Issues a notification that will result in a call to
CardGameReceiver.receivedCardsFromPlayer(int, com.threerings.parlor.card.data.Card[]) on a client. |
static void |
CardGameSender.sentCardsToPlayer(com.threerings.presents.data.ClientObject target,
int arg1,
Card[] arg2)
Issues a notification that will result in a call to
CardGameReceiver.sentCardsToPlayer(int, com.threerings.parlor.card.data.Card[]) on a client. |
void |
CardGameManager.transferCardsBetweenPlayers(int[] toPlayerIndices,
Card[][] cards)
Sends sets of cards between players simultaneously.
|
void |
CardGameManager.transferCardsBetweenPlayers(int fromPlayerIdx,
int toPlayerIdx,
Card[] cards)
Sends a set of cards from one player to another.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TrickCardGameService.playCard(Card card,
int handSize)
Plays a card in the trick.
|
void |
TrickCardGameService.sendCardsToPlayer(int toidx,
Card[] cards)
Sends a group of cards to the player at the specified index.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TrickCardGameObject.isCardPlayable(Hand hand,
Card card)
Checks whether a user can play the specified card at this time.
|
void |
TrickCardGameMarshaller.playCard(Card arg1,
int arg2) |
void |
TrickCardGameMarshaller.sendCardsToPlayer(int arg1,
Card[] arg2) |
| Modifier and Type | Method and Description |
|---|---|
void |
TrickCardGameProvider.playCard(com.threerings.presents.data.ClientObject caller,
Card arg1,
int arg2)
Handles a
TrickCardGameService.playCard(com.threerings.parlor.card.data.Card, int) request. |
void |
TrickCardGameManagerDelegate.playCard(com.threerings.presents.data.ClientObject client,
Card card,
int handSize) |
void |
TrickCardGameProvider.sendCardsToPlayer(com.threerings.presents.data.ClientObject caller,
int arg1,
Card[] arg2)
|
void |
TrickCardGameManagerDelegate.sendCardsToPlayer(com.threerings.presents.data.ClientObject client,
int toidx,
Card[] cards) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TrickCardGameUtil.containsCard(PlayerCard[] cards,
Card card)
Checks whether the specified array contains the given card.
|
static boolean |
TrickCardGameUtil.followsSuit(PlayerCard[] cardsPlayed,
Card card)
Checks whether the proposed card follows the suit lead.
|
Copyright © 2015. All rights reserved.