* Mana pool handling - Fixed bug where wrong playerId was used. Fixed that menu check state is the same for all GamePanles of client.

This commit is contained in:
LevelX2 2014-05-27 16:54:38 +02:00
parent 610c7d7462
commit c13f7a2115
7 changed files with 32 additions and 14 deletions

View file

@ -581,6 +581,16 @@ public final class GamePanel extends javax.swing.JPanel {
this.repaint();
}
/**
* Set the same state for menu selections to all player areas.
* @param manaPoolAutomatic
*/
public void setMenuStates(boolean manaPoolAutomatic) {
for(PlayAreaPanel playAreaPanel: players.values()) {
playAreaPanel.setMenuStates(manaPoolAutomatic);
}
}
private void displayStack(GameView game, BigCard bigCard, FeedbackPanel feedbackPanel, UUID gameId) {
this.stack.loadCards(game.getStack(), bigCard, gameId, null);
}