diff --git a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/model/PlayerStatus.java b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/model/PlayerStatus.java index edd8705..d34c54e 100644 --- a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/model/PlayerStatus.java +++ b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/model/PlayerStatus.java @@ -9,32 +9,56 @@ public enum PlayerStatus { /** Status representing a beginner. */ - NOOB, + NOOB(0), /** * Status representing a player who has increased * their net worth by at least 20 percent. */ - NOVICE, + NOVICE(20), /** * Status representing a player who has increased * their net worth by at least 50 percent. */ - GOOD, + GOOD(50), /** Status representing a player who has at least doubled their net worth. */ - TRYHARD, + TRYHARD(100), /** Status representing a player who has at least tripled their net worth. */ - PRO, + PRO(200), /** * Status representing a player who has at least quintupled their * net worth. */ - SEER, + SEER(400), /** * Status representing a player who has at least dectupled their * net worth. */ - OMNIPOTENT; + OMNIPOTENT(900); + + /** + * Value representing percent increase + * from starting money needed to get the respective status. + * */ + private final int percentIncreaseNeeded; + + /** + * Constructor. + * + * @param percentIncreaseNeeded the increase needed to get the status. + * */ + PlayerStatus(final int percentIncreaseNeeded) { + this.percentIncreaseNeeded = percentIncreaseNeeded; + } + + /** + * Getter method for percentincrease needed. + * + * @return percentIncreaseNeeded. + * */ + public int getPercentIncreaseNeeded() { + return percentIncreaseNeeded; + } }