Package view.overlays.gameOverlays
Class GamePausedOverlayView
java.lang.Object
view.overlays.gameOverlays.GameOverlayView
view.overlays.gameOverlays.GamePausedOverlayView
The GamePausedOverlayView class represents the overlay view displayed when the game is paused.
It handles drawing the title and control instructions on the screen.
-
Field Summary
Fields inherited from class view.overlays.gameOverlays.GameOverlayView
firstUpdate, nesFont, playingModel, retroFont -
Constructor Summary
ConstructorsConstructorDescriptionGamePausedOverlayView(PlayingModel playingModel) Constructs a GamePausedOverlayView with the specified PlayingModel. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDraws the control instructions on the screen.protected voidDraws the title "PAUSE" on the screen.protected voidsetAudio()Sets the audio for the game paused overlay.Methods inherited from class view.overlays.gameOverlays.GameOverlayView
draw, reset
-
Constructor Details
-
GamePausedOverlayView
Constructs a GamePausedOverlayView with the specified PlayingModel.- Parameters:
playingModel- the model of the playing state
-
-
Method Details
-
drawTitle
Draws the title "PAUSE" on the screen.- Specified by:
drawTitlein classGameOverlayView- Parameters:
g- the Graphics object to draw with
-
drawControls
Draws the control instructions on the screen.- Specified by:
drawControlsin classGameOverlayView- 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:
setAudioin classGameOverlayView
-