Class MainMenuOption

java.lang.Object
javatro.manager.options.MainMenuOption
All Implemented Interfaces:
Option

public class MainMenuOption extends Object implements Option
The MainMenuOption class represents a command that loads the start screen, allowing players to navigate to the main menu.
  • Constructor Details

    • MainMenuOption

      public MainMenuOption()
  • Method Details

    • getDescription

      public String getDescription()
      Provides a brief description of the command.
      Specified by:
      getDescription in interface Option
      Returns:
      A string describing the command.
    • execute

      public void execute() throws JavatroException
      Executes the command to change the screen to the start menu.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - If an error occurs during execution.