-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from solvena/27-add-player-status
Add player status
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters