Package com.mg105.user_interface
Class LoseMenu
java.lang.Object
com.mg105.user_interface.LoseMenu
- All Implemented Interfaces:
Toggleable
LoseMenu is displayed when the player loses the game.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LoseMenu
Create a new LoseMenu- Parameters:
replayButton- the button that performs the replay action
-
-
Method Details
-
getScene
@NotNull public @NotNull javafx.scene.Scene getScene()Description copied from interface:ToggleableGet the scene of this toggleable object. It is this scene that will be displayed.- Specified by:
getScenein interfaceToggleable- Returns:
- the scene to be displayed.
-
toggle
public void toggle(boolean isVisible) Description copied from interface:ToggleableSet the visibility of this component.- Specified by:
togglein interfaceToggleable- Parameters:
isVisible- true if the Toggleable is now visible, false otherwise. If false the Toggleable is expected to do nothing on ANY user inputs.
-