Package model
Class WorldScores
java.lang.Object
model.WorldScores
Singleton class for the WorldScores
Contains 3 scoreboards, one for each difficulty
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScoreboardScoreboard for easy difficultyprivate final ScoreboardScoreboard for hard difficultyprivate static WorldScoresSingleton instance of the WorldScores classprivate final ScoreboardScoreboard for medium difficulty -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor for the WorldScores class -
Method Summary
Modifier and TypeMethodDescriptiongetter for the easyScoresgetter for the hardScoresstatic WorldScoresReturns the singleton instance of the WorldScores classgetter for the mediumScores
-
Field Details
-
easyScores
Scoreboard for easy difficulty -
mediumScores
Scoreboard for medium difficulty -
hardScores
Scoreboard for hard difficulty -
instance
Singleton instance of the WorldScores class
-
-
Constructor Details
-
WorldScores
private WorldScores()Private constructor for the WorldScores class
-
-
Method Details
-
getInstance
Returns the singleton instance of the WorldScores class- Returns:
- WorldScores instance
-
getEasyScores
getter for the easyScores- Returns:
- - see
easyScores
-
getMediumScores
getter for the mediumScores- Returns:
- - see
mediumScores
-
getHardScores
getter for the hardScores- Returns:
- - see
hardScores
-