Package view.gameStates
Class MenuView
java.lang.Object
view.gameStates.MenuView
The MenuView class represents the view for the
MenuModel.
It handles drawing the menu elements, updating animations, and managing user interactions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws the menu screen elements, including the title, selections, and suggestions.Gets the MenuUserCreationOverlayView for the menu screen.Gets the MenuUserSelectionOverlayView for the menu screen.voidupdate()Updates the menu view, including animations and user interactions.
-
Constructor Details
-
MenuView
Constructs a MenuView with the specified MenuModel and GameController.- Parameters:
menuModel- the model for the menu screen
-
-
Method Details
-
update
public void update()Updates the menu view, including animations and user interactions. -
draw
Draws the menu screen elements, including the title, selections, and suggestions.- Parameters:
g- the Graphics object to draw with
-
getMenuUserCreationOverlayView
Gets the MenuUserCreationOverlayView for the menu screen.- Returns:
- the MenuUserCreationOverlayView
-
getMenuUserSelectionOverlayView
Gets the MenuUserSelectionOverlayView for the menu screen.- Returns:
- the MenuUserSelectionOverlayView
-