Skip to content

Commit

Permalink
Add getStartingMoney() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Solveig Natvig committed May 26, 2026
1 parent e36e00d commit 5343ffd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/Model/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ public BigDecimal getMoney() {
return this.money;
}

/**
* Returns the player's initial cash balance.
*
* @return the players money at the start
*/
public BigDecimal getStartingMoney() {
return this.startingMoney;
}

/**
* Adds the specified amount to the player's cash balance.
*
Expand Down

0 comments on commit 5343ffd

Please sign in to comment.