com.threerings.parlor.card.data
Class PlayerCard
java.lang.Object
com.threerings.parlor.card.data.PlayerCard
- All Implemented Interfaces:
- Streamable
public class PlayerCard
- extends Object
- implements Streamable
Pairs a player index with the card that the player played in the trick.
|
Field Summary |
Card |
card
The card that the player played. |
int |
pidx
The index of the player. |
|
Constructor Summary |
PlayerCard()
No-argument constructor for deserialization. |
PlayerCard(int pidx,
Card card)
Creates a new player card. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pidx
public int pidx
- The index of the player.
card
public Card card
- The card that the player played.
PlayerCard
public PlayerCard()
- No-argument constructor for deserialization.
PlayerCard
public PlayerCard(int pidx,
Card card)
- Creates a new player card.
- Parameters:
pidx - the index of the playercard - the card played