-
Notifications
You must be signed in to change notification settings - Fork 4
GameLevelData
Mohamad Dabboussi edited this page Oct 2, 2023
·
1 revision
The GameLevelData
class is responsible for managing the selected game level. It stores the selected level's identifier and provides methods to access and modify this data. The level is determined in the levelSelectScreen
- Storage of the selected game level.
- Getter and setter methods for the selected level.
package com.csse3200.game.screens;
public class GameLevelData {
private static int selectedLevel = -1;
public static int getSelectedLevel() {
return selectedLevel;
}
public static void setSelectedLevel(int level) {
selectedLevel = level;
}
}