Class MenuView

java.lang.Object
view.gameStates.MenuView

public class MenuView extends Object
The MenuView class represents the view for the MenuModel. It handles drawing the menu elements, updating animations, and managing user interactions.
  • Constructor Details

    • MenuView

      public MenuView(MenuModel menuModel)
      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

      public void draw(Graphics g)
      Draws the menu screen elements, including the title, selections, and suggestions.
      Parameters:
      g - the Graphics object to draw with
    • getMenuUserCreationOverlayView

      public MenuUserCreationOverlayView getMenuUserCreationOverlayView()
      Gets the MenuUserCreationOverlayView for the menu screen.
      Returns:
      the MenuUserCreationOverlayView
    • getMenuUserSelectionOverlayView

      public MenuUserSelectionOverlayView getMenuUserSelectionOverlayView()
      Gets the MenuUserSelectionOverlayView for the menu screen.
      Returns:
      the MenuUserSelectionOverlayView