Skip to content

Commit

Permalink
Feat: Updated playerstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyah committed May 11, 2026
1 parent 1afe967 commit 305cfa0
Showing 1 changed file with 31 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 305cfa0

Please sign in to comment.