Skip to content

Commit

Permalink
Fixed local variable hides a field warning in the game controller in …
Browse files Browse the repository at this point in the history
…the JavaFX client.
  • Loading branch information
skiwi2 committed Sep 8, 2014
1 parent df229e6 commit 4bae902
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -361,11 +361,11 @@ public void markTargets(List<Card> targets) {
@FXML
Label playerScrap;
private void updateGameLabels() {
Player opponent = game.getLastPlayer();
opponentLife.setText(String.format("%d",opponent.data.get("life").toint()));
opponentCurrentMana.setText(String.format("%d",opponent.data.get("mana").toint()));
opponentTotalMana.setText(String.format("%d",opponent.data.get("manaMax").toint()));
opponentScrap.setText(String.format("%d",opponent.data.get("scrap").toint()));
Player localOpponent = game.getLastPlayer();
opponentLife.setText(String.format("%d",localOpponent.data.get("life").toint()));
opponentCurrentMana.setText(String.format("%d",localOpponent.data.get("mana").toint()));
opponentTotalMana.setText(String.format("%d",localOpponent.data.get("manaMax").toint()));
opponentScrap.setText(String.format("%d",localOpponent.data.get("scrap").toint()));

Player player = game.getFirstPlayer();
playerLife.setText(String.format("%d", player.data.get("life").toint()));
Expand Down

0 comments on commit 4bae902

Please sign in to comment.