jrummikub.model
Interface IPlayer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
Player

public interface IPlayer
extends java.io.Serializable

Interface for Player model


Method Summary
 IHand getHand()
          Get the current hand of the player
 boolean getLaidOut()
          Has the player laid out yet?
 int getLastTurnStoneCount()
          Gets the number of stones put on table in player's last turn
 PlayerSettings getPlayerSettings()
          Returns the player settings
 void setHand(IHand hand)
          Set the current hand of the player
 void setLaidOut(boolean laidOut)
          Set if the player laid out
 void setLastTurnInvalid(boolean value)
          Sets last turn invalid
 void setLastTurnStoneCount(int value)
          Sets the number of stones out on the table in player's last turn
 boolean wasLastTurnInvalid()
          Getter for last turn invalid
 

Method Detail

getHand

IHand getHand()
Get the current hand of the player

Returns:
the player's hand

setHand

void setHand(IHand hand)
Set the current hand of the player

Parameters:
hand - the new hand

getLaidOut

boolean getLaidOut()
Has the player laid out yet?

Returns:
if the player has laid out

getPlayerSettings

PlayerSettings getPlayerSettings()
Returns the player settings

Returns:
the player settings

setLaidOut

void setLaidOut(boolean laidOut)
Set if the player laid out

Parameters:
laidOut - the player laid out

wasLastTurnInvalid

boolean wasLastTurnInvalid()
Getter for last turn invalid

Returns:
last turn invalid

setLastTurnInvalid

void setLastTurnInvalid(boolean value)
Sets last turn invalid

Parameters:
value - last turn invalid

getLastTurnStoneCount

int getLastTurnStoneCount()
Gets the number of stones put on table in player's last turn

Returns:
number of stones

setLastTurnStoneCount

void setLastTurnStoneCount(int value)
Sets the number of stones out on the table in player's last turn

Parameters:
value - number of stones