Added round control tests for checking whether redealing is allowed
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@289 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
2d198820a9
commit
ffeefad257
4 changed files with 59 additions and 0 deletions
|
@ -43,4 +43,15 @@ public interface IPlayerPanel {
|
|||
* @return the event
|
||||
*/
|
||||
public IEvent getRedealEvent();
|
||||
|
||||
/**
|
||||
* Sets the buttons available to end the turn
|
||||
*
|
||||
* @param inspectOnly
|
||||
* true for each player's first turn
|
||||
* @param mayRedeal
|
||||
* true if the player is allowed to trigger a redealing of all
|
||||
* stones
|
||||
*/
|
||||
public abstract void setEndTurnMode(boolean inspectOnly, boolean mayRedeal);
|
||||
}
|
||||
|
|
|
@ -320,6 +320,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setEndTurnMode(boolean inspectOnly, boolean mayRedeal) {
|
||||
if (!inspectOnly) {
|
||||
endTurnButton.setText("Zug beenden");
|
||||
|
|
Reference in a new issue