jrummikub.view
Interface IPlayerPanel

All Known Implementing Classes:
PlayerPanel

public interface IPlayerPanel

The player panel that contains a player's board and other user interfaces


Method Summary
 IEvent getEndTurnEvent()
          The end turn event is emitted when the player wants to end his turn
 IEvent getRedealEvent()
          The redeal event is emitted when the player wants to get new stones
 IEvent getSortByGroupsEvent()
          The sort by groups event is emitted when the player wants to sort his stones by groups
 IEvent getSortByRunsEvent()
          The sort by runs event is emitted when the player wants to sort his stones by runs
 void setEndTurnMode(TurnMode turnMode)
          Sets the buttons available to end the turn
 void setTime(int time, int totalTime)
          Sets the time the player has left for his turn
 

Method Detail

setTime

void setTime(int time,
             int totalTime)
Sets the time the player has left for his turn

Parameters:
time - the time left
totalTime - total time for a turn

getSortByGroupsEvent

IEvent getSortByGroupsEvent()
The sort by groups event is emitted when the player wants to sort his stones by groups

Returns:
the event

getSortByRunsEvent

IEvent getSortByRunsEvent()
The sort by runs event is emitted when the player wants to sort his stones by runs

Returns:
the event

getEndTurnEvent

IEvent getEndTurnEvent()
The end turn event is emitted when the player wants to end his turn

Returns:
the event

getRedealEvent

IEvent getRedealEvent()
The redeal event is emitted when the player wants to get new stones

Returns:
the event

setEndTurnMode

void setEndTurnMode(TurnMode turnMode)
Sets the buttons available to end the turn

Parameters:
turnMode - the TurnMode