Package com.csse3200.game.screens
Class GameLevelData
java.lang.Object
com.csse3200.game.screens.GameLevelData
The
GameLevelData
class is responsible for managing the selected game level.
It provides methods to get and set the selected game level.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Get the currently selected game level.static void
setSelectedLevel
(int level) Set the selected game level.
-
Constructor Details
-
GameLevelData
public GameLevelData()
-
-
Method Details
-
getSelectedLevel
public static int getSelectedLevel()Get the currently selected game level.- Returns:
- The selected game level.
-
setSelectedLevel
public static void setSelectedLevel(int level) Set the selected game level.- Parameters:
level
- The new game level to be selected.
-