Skip to content

Commit

Permalink
Updated MainGameScene class for status
Browse files Browse the repository at this point in the history
  • Loading branch information
elisab3 committed May 24, 2026
1 parent 445dd5b commit 58f8cac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/View/MainGameScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,10 @@ private void updateBuyInfo(String symbol, TextField qtyField, Label label) {
}

private void updateStatus() {
PlayerStatus playerStatus = player.getStatus();
statusLabel.setText(
"Player: " + player.getName() +
" | Status: " + playerStatus.getDisplayName() +
" | Week: " + exchange.getWeek() +
" | Cash: $" + formatMoney(player.getMoney()) +
" | Net Worth: $" + formatMoney(getNetWorth())
Expand Down

0 comments on commit 58f8cac

Please sign in to comment.