common
Class Move

java.lang.Object
  extended by common.Move
All Implemented Interfaces:
java.io.Serializable

public class Move
extends java.lang.Object
implements java.io.Serializable

Title: Move

Description: Stores the Card and playerNum of the player that played it.

See Also:
Serialized Form

Field Summary
 Card card
           
 boolean nextTurn
           
 int playerNum
           
 int playerThatMovesNext
           
 int turnWinner
           
 
Constructor Summary
Move(Card c, int player)
          Holds the card that the player played and that player's number at the table.
Move(Card c, int player, boolean turn, int nextPlayerMove)
           
 
Method Summary
 java.lang.String toString()
          Returns a String representation of this Move object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

card

public Card card

playerNum

public int playerNum

nextTurn

public boolean nextTurn

playerThatMovesNext

public int playerThatMovesNext

turnWinner

public int turnWinner
Constructor Detail

Move

public Move(Card c,
            int player)
Holds the card that the player played and that player's number at the table.

Parameters:
c - Card that the player played.
player - int number at the table.

Move

public Move(Card c,
            int player,
            boolean turn,
            int nextPlayerMove)
Parameters:
c - Card that the player played.
player - int number at the table.
turn - boolean whether or not it's the start of a new turn.
nextPlayerMove - int specifies which player at the table moves next.
Method Detail

toString

public java.lang.String toString()
Returns a String representation of this Move object.

Overrides:
toString in class java.lang.Object
Returns:
String