git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@75 72836036-5685-4462-b002-a69064685172
52 lines
1.1 KiB
Java
52 lines
1.1 KiB
Java
package jrummikub.view;
|
|
|
|
import jrummikub.util.IEvent;
|
|
|
|
/**
|
|
* The player panel that contains a player's board and other user interfaces
|
|
*/
|
|
public interface IPlayerPanel {
|
|
/**
|
|
* @return the board where the players hand stones are displayed
|
|
*/
|
|
public IHandPanel getHandPanel();
|
|
|
|
/**
|
|
* Sets the current player's name
|
|
*
|
|
* @param playerName
|
|
* the player name
|
|
*/
|
|
public void setCurrentPlayerName(String playerName);
|
|
|
|
/**
|
|
* Sets the time the player has left for his turn
|
|
*
|
|
* @param time
|
|
* the time left
|
|
*/
|
|
public void setTimeLeft(int time);
|
|
|
|
/**
|
|
* The sort by number event is emitted when the player wants to sort his
|
|
* stones by number
|
|
*
|
|
* @return the event
|
|
*/
|
|
public IEvent getSortByNumberEvent();
|
|
|
|
/**
|
|
* The sort by number event is emitted when the player wants to sort his
|
|
* stones by number
|
|
*
|
|
* @return the event
|
|
*/
|
|
public IEvent getSortByColorEvent();
|
|
|
|
/**
|
|
* The end turn event is emitted when the player wants to end his turn
|
|
*
|
|
* @return the event
|
|
*/
|
|
public IEvent getEndTurnEvent();
|
|
}
|