Skip to content

Commit

Permalink
Created PLayerStatus class
Browse files Browse the repository at this point in the history
  • Loading branch information
elisab3 committed May 24, 2026
1 parent 0f08426 commit 4a0c756
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/main/java/Model/PlayerStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package Model;

/**
* Enum representing the player's status level based on trading activity and performance.
*
* Status levels:
* - NOVICE: Starting level, no requirements
* - INVESTOR: Traded for at least 10 weeks AND increased net worth by at least 20%
* - SPECULATOR: Traded for at least 20 weeks AND doubled the net worth (100% increase)
*/
public enum PlayerStatus {
NOVICE("Novice"),
INVESTOR("Investor"),
SPECULATOR("Speculator");

private final String displayName;

PlayerStatus(String displayName) {
this.displayName = displayName;
}

public String getDisplayName() {
return displayName;
}
}

0 comments on commit 4a0c756

Please sign in to comment.