-
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.
implement player status and methods for calculating networth
- Loading branch information
Showing
3 changed files
with
69 additions
and
1 deletion.
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
19 changes: 19 additions & 0 deletions
19
src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Status.java
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,19 @@ | ||
| package edu.ntnu.idi.idatt2003.gruppe42.Model; | ||
|
|
||
| /** | ||
| * Represents the progression level of a player. | ||
| * <p> | ||
| * A player can have one of the following statuses based on their | ||
| * trading activity and net worth growth: | ||
| * </p> | ||
| * <ul> | ||
| * <li>{@link #NOVICE}: Starting level with no requirements.</li> | ||
| * <li>{@link #INVESTOR}: Achieved by trading for at least 10 distinct weeks and increasing net worth by at least 20%.</li> | ||
| * <li>{@link #SPECULATOR}: Achieved by trading for at least 20 distinct weeks and doubling net worth.</li> | ||
| * </ul> | ||
| */ | ||
| public enum Status { | ||
| NOVICE, | ||
| INVESTOR, | ||
| SPECULATOR; | ||
| } |