Skip to content

Commit

Permalink
Feat: Added playerstatus enum
Browse files Browse the repository at this point in the history
Did not implement logic for getting correct enum
  • Loading branch information
tommyah committed Mar 19, 2026
1 parent cb771f0 commit 03616e9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/test/java/edu/ntnu/idi/idatt2003/g40/mappe/PlayerStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package edu.ntnu.idi.idatt2003.g40.mappe;

/**
* Enum representing a players' current status.
*
* <p>The player has the responsibility for getting
* a status.</p>
* */
public enum PlayerStatus {
NOOB,
NOVICE,
GOOD,
TRYHARD,
PRO,
HACKER,
SEER,
OMNIPOTENT;

/**
* Method for getting a player status based on a player.
*
* <p>Calculates what status the player should get
* based on players' net worth compared to starting
* money.</p>
*
* @param player the player to give a status to.
*
* @return a PlayerStatus
* */
public PlayerStatus getStatus(final Player player) {
return PlayerStatus.NOOB;
}
}

0 comments on commit 03616e9

Please sign in to comment.