Class ScoreManager

java.lang.Object
de.tum.cit.fop.maze.Utils.ScoreManager

public class ScoreManager extends Object
Manages high scores for endless mode with persistent storage.
  • Method Details

    • getInstance

      public static ScoreManager getInstance()
      Gets the singleton instance of ScoreManager.
      Returns:
      The ScoreManager instance
    • getScores

      public ArrayList<Long> getScores()
      Gets the list of top scores.
      Returns:
      Sorted list of scores (highest first)
    • addScore

      public void addScore(long score)
      Adds a new score and saves to leaderboard (keeps top 10).
      Parameters:
      score - The score to add