|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use PlayerCard | |
|---|---|
| com.threerings.parlor.card.trick.data | |
| com.threerings.parlor.card.trick.util | |
| Uses of PlayerCard in com.threerings.parlor.card.trick.data |
|---|
| Methods in com.threerings.parlor.card.trick.data that return PlayerCard | |
|---|---|
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. |
| Methods in com.threerings.parlor.card.trick.data with parameters of type PlayerCard | |
|---|---|
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. |
| Uses of PlayerCard in com.threerings.parlor.card.trick.util |
|---|
| Methods in com.threerings.parlor.card.trick.util that return PlayerCard | |
|---|---|
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. |
| Methods in com.threerings.parlor.card.trick.util with parameters of type PlayerCard | |
|---|---|
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. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||