Class PauseOverlay

java.lang.Object
com.csse3200.game.overlays.Overlay
com.csse3200.game.overlays.PauseOverlay

public class PauseOverlay extends Overlay
Represents an overlay that is displayed when the game is paused. game services.
  • Constructor Details

    • PauseOverlay

      public PauseOverlay(PausableScreen screen, GdxGame game)
      Constructs an overlay instance and initializes its UI components.
  • Method Details

    • rest

      public void rest()
      Handles the resting state of the overlay. This method is called when the overlay is put into a resting state.
      Overrides:
      rest in class Overlay
    • wake

      public void wake()
      Handles the waking state of the overlay. This method is called when the overlay is brought to the foreground.
      Overrides:
      wake in class Overlay