Class GamePausedOverlayView

java.lang.Object
view.overlays.gameOverlays.GameOverlayView
view.overlays.gameOverlays.GamePausedOverlayView

public class GamePausedOverlayView extends GameOverlayView
The GamePausedOverlayView class represents the overlay view displayed when the game is paused. It handles drawing the title and control instructions on the screen.
  • Constructor Details

    • GamePausedOverlayView

      public GamePausedOverlayView(PlayingModel playingModel)
      Constructs a GamePausedOverlayView with the specified PlayingModel.
      Parameters:
      playingModel - the model of the playing state
  • Method Details

    • drawTitle

      protected void drawTitle(Graphics g)
      Draws the title "PAUSE" on the screen.
      Specified by:
      drawTitle in class GameOverlayView
      Parameters:
      g - the Graphics object to draw with
    • drawControls

      protected void drawControls(Graphics g)
      Draws the control instructions on the screen.
      Specified by:
      drawControls in class GameOverlayView
      Parameters:
      g - the Graphics object to draw with
    • setAudio

      protected void setAudio()
      Sets the audio for the game paused overlay. Stops the current song.
      Specified by:
      setAudio in class GameOverlayView