Package javatro.manager.options
Class MainMenuOption
java.lang.Object
javatro.manager.options.MainMenuOption
- All Implemented Interfaces:
Option
The
MainMenuOption class represents a command that loads the start screen, allowing
players to navigate to the main menu.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the command to change the screen to the start menu.Provides a brief description of the command.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javatro.manager.options.Option
setDescription
-
Constructor Details
-
MainMenuOption
public MainMenuOption()
-
-
Method Details
-
getDescription
Provides a brief description of the command.- Specified by:
getDescriptionin interfaceOption- Returns:
- A string describing the command.
-
execute
Executes the command to change the screen to the start menu.- Specified by:
executein interfaceOption- Throws:
JavatroException- If an error occurs during execution.
-