com.threerings.parlor.card.data
Class PlayerCard

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
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.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pidx

public int pidx
The index of the player.


card

public Card card
The card that the player played.

Constructor Detail

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 player
card - the card played