Class WinMenu

java.lang.Object
com.mg105.user_interface.WinMenu
All Implemented Interfaces:
Toggleable

public class WinMenu extends Object implements Toggleable
A menu that is shown to the player after they have reached the final room
  • Constructor Details

    • WinMenu

      public WinMenu(@NotNull @NotNull ReplayGeneratorButton ReplayButton)
      Shows a button that congratulates you and lets you replay the game
      Parameters:
      ReplayButton - the button responsible for replaying the game
  • Method Details

    • getScene

      @NotNull public @NotNull javafx.scene.Scene getScene()
      Get scene of the WinMenu
      Specified by:
      getScene in interface Toggleable
      Returns:
      the scene that WinMenu is in
    • toggle

      public void toggle(boolean isVisible)
      Toggle the WinMenu
      Specified by:
      toggle in interface Toggleable
      Parameters:
      isVisible - whether the menu is visible