java.lang.Object
fr.paris.saclay.sidescroller.controllers.components.menu.GameMenuModel

public class GameMenuModel extends Object
Model of GameMenu class, it stores its logic.
  • Constructor Details

    • GameMenuModel

      public GameMenuModel()
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Gets preferred size.
      Returns:
      the preferred size
    • getSize

      public Dimension getSize()
      Gets size.
      Returns:
      the size
    • isPauseMenu

      public boolean isPauseMenu()
      Is pause menu boolean.
      Returns:
      the boolean
    • setPauseMenu

      public void setPauseMenu(boolean pauseMenu)
      Sets pause menu.
      Parameters:
      pauseMenu - the pause menu
    • getPlayButton

      public MenuButton getPlayButton()
      Gets play button.
      Returns:
      the play button
    • setPlayButton

      public void setPlayButton(MenuButton playButton)
      Sets play button.
      Parameters:
      playButton - the play button
    • getQuitButton

      public MenuButton getQuitButton()
      Gets quit button.
      Returns:
      the quit button
    • setQuitButton

      public void setQuitButton(MenuButton quitButton)
      Sets quit button.
      Parameters:
      quitButton - the quit button
    • getResumeButton

      public MenuButton getResumeButton()
      Gets resume button.
      Returns:
      the resume button
    • setResumeButton

      public void setResumeButton(MenuButton resumeButton)
      Sets resume button.
      Parameters:
      resumeButton - the resume button
    • getQuitToMenuButton

      public MenuButton getQuitToMenuButton()
      Gets quit to menu button.
      Returns:
      the quit to menu button
    • setQuitToMenuButton

      public void setQuitToMenuButton(MenuButton quitToMenuButton)
      Sets quit to menu button.
      Parameters:
      quitToMenuButton - the quit to menu button
    • getCredits

      public JLabel getCredits()
      Gets credits.
      Returns:
      the credits
    • setCredits

      public void setCredits(JLabel credits)
      Sets credits.
      Parameters:
      credits - the credits
    • getTimer

      public Timer getTimer()
      Gets timer.
      Returns:
      the timer
    • setTimer

      public void setTimer(Timer timer)
      Sets timer.
      Parameters:
      timer - the timer
    • getBackgroundThemes

      public List<String> getBackgroundThemes()
      Gets background themes.
      Returns:
      the background themes
    • getPlayerThemes

      public List<String> getPlayerThemes()
      Gets player themes.
      Returns:
      the player themes
    • getCurrentThemeSelection

      public int getCurrentThemeSelection()
      Gets current theme selection.
      Returns:
      the current theme selection
    • setCurrentThemeSelection

      public void setCurrentThemeSelection(int currentThemeSelection)
      Sets current theme selection.
      Parameters:
      currentThemeSelection - the current theme selection
    • getCurrentPlayerSelection

      public int getCurrentPlayerSelection()
      Gets current player selection.
      Returns:
      the current player selection
    • setCurrentPlayerSelection

      public void setCurrentPlayerSelection(int currentPlayerSelection)
      Sets current player selection.
      Parameters:
      currentPlayerSelection - the current player selection
    • getNextBackgroundButton

      public SelectionMenuButton getNextBackgroundButton()
      Gets next background button.
      Returns:
      the next background button
    • setNextBackgroundButton

      public void setNextBackgroundButton(SelectionMenuButton nextBackgroundButton)
      Sets next background button.
      Parameters:
      nextBackgroundButton - the next background button
    • getPreviousBackgroundButton

      public SelectionMenuButton getPreviousBackgroundButton()
      Gets previous background button.
      Returns:
      the previous background button
    • setPreviousBackgroundButton

      public void setPreviousBackgroundButton(SelectionMenuButton previousBackgroundButton)
      Sets previous background button.
      Parameters:
      previousBackgroundButton - the previous background button
    • getNextAvatarButton

      public SelectionMenuButton getNextAvatarButton()
      Gets next avatar button.
      Returns:
      the next avatar button
    • setNextAvatarButton

      public void setNextAvatarButton(SelectionMenuButton nextAvatarButton)
      Sets next avatar button.
      Parameters:
      nextAvatarButton - the next avatar button
    • getPreviousAvatarButton

      public SelectionMenuButton getPreviousAvatarButton()
      Gets previous avatar button.
      Returns:
      the previous avatar button
    • setPreviousAvatarButton

      public void setPreviousAvatarButton(SelectionMenuButton previousAvatarButton)
      Sets previous avatar button.
      Parameters:
      previousAvatarButton - the previous avatar button
    • getBackgroundPreview

      public ImagePreview getBackgroundPreview()
      Gets background preview.
      Returns:
      the background preview
    • getAvatarPreview

      public ImagePreview getAvatarPreview()
      Gets avatar preview.
      Returns:
      the avatar preview
    • getStartGameButton

      public MenuButton getStartGameButton()
      Gets start game button.
      Returns:
      the start game button
    • setStartGameButton

      public void setStartGameButton(MenuButton startGameButton)
      Sets start game button.
      Parameters:
      startGameButton - the start game button
    • getBackButton

      public MenuButton getBackButton()
      Gets back button.
      Returns:
      the back button
    • setBackButton

      public void setBackButton(MenuButton backButton)
      Sets back button.
      Parameters:
      backButton - the back button