This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
JRummikub/src/jrummikub/view/IPlayerPanel.java

50 lines
966 B
Java
Raw Normal View History

package jrummikub.view;
import jrummikub.util.IEvent;
public interface IPlayerPanel {
/**
* @return
*/
public IBoard getBoard();
/**
* 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();
}