Class GameLevelData

java.lang.Object
com.csse3200.game.screens.GameLevelData

public class GameLevelData extends Object
The GameLevelData class is responsible for managing the selected game level. It provides methods to get and 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.