diff --git a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/PlayerStatus.java b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/PlayerStatus.java new file mode 100644 index 0000000..3bd959f --- /dev/null +++ b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/PlayerStatus.java @@ -0,0 +1,42 @@ +package edu.ntnu.idi.idatt2003.g40.mappe; + +import java.math.BigDecimal; + +/** + * Enum representing a players' current status. + * + *

The player has the responsibility for getting + * a status.

+ * */ +public enum PlayerStatus { + + /** Status representing a beginner. */ + NOOB, + + /** + * Status representing a player who has increased + * their net worth by at least 20 percent. */ + NOVICE, + + /** + * Status representing a player who has increased + * their net worth by at least 50 percent. */ + GOOD, + + /** Status representing a player who has at least doubled their net worth. */ + TRYHARD, + + /** Status representing a player who has at least tripled their net worth. */ + PRO, + + /** + * Status representing a player who has at least quintupled their + * net worth. */ + SEER, + + /** + * Status representing a player who has at least dectupled their + * net worth. */ + OMNIPOTENT; +} + diff --git a/src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/PlayerStatus.java b/src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/PlayerStatus.java deleted file mode 100644 index a60a8ed..0000000 --- a/src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/PlayerStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -package edu.ntnu.idi.idatt2003.g40.mappe; - -/** - * Enum representing a players' current status. - * - *

The player has the responsibility for getting - * a status.

- * */ -public enum PlayerStatus { - NOOB, - NOVICE, - GOOD, - TRYHARD, - PRO, - HACKER, - SEER, - OMNIPOTENT; - - /** - * Method for getting a player status based on a player. - * - *

Calculates what status the player should get - * based on players' net worth compared to starting - * money.

- * - * @param player the player to give a status to. - * - * @return a PlayerStatus - * */ - public PlayerStatus getStatus(final Player player) { - return PlayerStatus.NOOB; - } -} -