Skip to content

GameLevelData

Mohamad Dabboussi edited this page Oct 2, 2023 · 1 revision

GameLevelData

Overview

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

Features

  • 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;
    }
}
Clone this wiki locally