| Package | Description |
|---|---|
| com.threerings.parlor.card.trick.data | |
| com.threerings.parlor.card.trick.util |
| Modifier and Type | Method and Description |
|---|---|
PlayerCard[] |
TrickCardGameObject.getCardsPlayed()
Returns an array containing the history of the trick in terms of the
cards played by each player.
|
PlayerCard[] |
TrickCardGameObject.getLastCardsPlayed()
Returns an array containing the history of the last trick in terms of
the cards played by each player.
|
PlayerCard |
TrickCardGameObject.getTrickTaker()
Returns the card of the player who took the current trick.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TrickCardGameObject.setCardsPlayed(PlayerCard[] cardsPlayed)
Sets the array of cards played by each player.
|
void |
TrickCardGameObject.setLastCardsPlayed(PlayerCard[] lastCardsPlayed)
Sets the last array of cards played by each player.
|
| Modifier and Type | Method and Description |
|---|---|
static PlayerCard |
TrickCardGameUtil.getHighestInLeadSuit(PlayerCard[] cardsPlayed,
int trumpSuit)
Returns the highest card (according to the standard A,K,...,2 ordering) in the suit lead,
with an optional trump suit.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TrickCardGameUtil.canFollowSuit(PlayerCard[] cardsPlayed,
Hand hand)
Checks whether the player can follow the suit lead with the hand given.
|
static boolean |
TrickCardGameUtil.containsCard(PlayerCard[] cards,
Card card)
Checks whether the specified array contains the given card.
|
static int |
TrickCardGameUtil.countSuitMembers(PlayerCard[] cards,
int suit)
Determines the number of cards that belong to the specified suit within the array given.
|
static boolean |
TrickCardGameUtil.followsSuit(PlayerCard[] cardsPlayed,
Card card)
Checks whether the proposed card follows the suit lead.
|
static PlayerCard |
TrickCardGameUtil.getHighestInLeadSuit(PlayerCard[] cardsPlayed,
int trumpSuit)
Returns the highest card (according to the standard A,K,...,2 ordering) in the suit lead,
with an optional trump suit.
|
Copyright © 2015. All rights reserved.