common
Class Move
java.lang.Object
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
|
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 |
card
public Card card
playerNum
public int playerNum
nextTurn
public boolean nextTurn
playerThatMovesNext
public int playerThatMovesNext
turnWinner
public int turnWinner
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.
toString
public java.lang.String toString()
- Returns a String representation of this Move object.
- Overrides:
toString in class java.lang.Object
- Returns:
- String