From 4a0c7565d4091b1b6d5e310bd80b6ac780573881 Mon Sep 17 00:00:00 2001 From: Elisabeth Berg Date: Sun, 24 May 2026 22:19:07 +0200 Subject: [PATCH] Created PLayerStatus class --- src/main/java/Model/PlayerStatus.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/main/java/Model/PlayerStatus.java diff --git a/src/main/java/Model/PlayerStatus.java b/src/main/java/Model/PlayerStatus.java new file mode 100644 index 0000000..cf14ea8 --- /dev/null +++ b/src/main/java/Model/PlayerStatus.java @@ -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; + } +}