Package view.levels

Class LevelManagerView

java.lang.Object
view.levels.LevelManagerView

public class LevelManagerView extends Object
The LevelManagerView class is responsible for the LevelManagerModel class. It loads the necessary sprites and draws the tiles based on the current level data.
  • Method Details

    • getInstance

      public static LevelManagerView getInstance()
      Returns the singleton instance of LevelManagerView, creating it if necessary.
      Returns:
      the singleton instance of LevelManagerView
    • draw

      public void draw(Graphics g)
      Draws the level tiles and number tiles on the screen.
      Parameters:
      g - the Graphics object to draw with
    • getNumbersTiles

      public BufferedImage[] getNumbersTiles()
      Returns the array of number tiles.
      Returns:
      the array of number tiles
    • getLevelTiles

      public BufferedImage[] getLevelTiles()
      Returns the array of level tiles.
      Returns:
      the array of level tiles