Package view.levels
Class LevelManagerView
java.lang.Object
view.levels.LevelManagerView
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 Summary
Modifier and TypeMethodDescriptionvoidDraws the level tiles and number tiles on the screen.static LevelManagerViewReturns the singleton instance of LevelManagerView, creating it if necessary.Returns the array of level tiles.Returns the array of number tiles.
-
Method Details
-
getInstance
Returns the singleton instance of LevelManagerView, creating it if necessary.- Returns:
- the singleton instance of LevelManagerView
-
draw
Draws the level tiles and number tiles on the screen.- Parameters:
g- the Graphics object to draw with
-
getNumbersTiles
Returns the array of number tiles.- Returns:
- the array of number tiles
-
getLevelTiles
Returns the array of level tiles.- Returns:
- the array of level tiles
-