Class ExitGameOption

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

public class ExitGameOption extends Object implements Option
Terminates the game application after displaying exit sequences. Shows farewell message and performs clean shutdown.
  • Constructor Details

    • ExitGameOption

      public ExitGameOption()
  • Method Details

    • getDescription

      public String getDescription()
      Retrieves a description of the command. This method has a default implementation returning an empty string.
      Specified by:
      getDescription in interface Option
      Returns:
      Constant description "Exit Game"
    • execute

      public void execute() throws JavatroException
      Executes the command. Implementing classes must define specific behavior. Performs orderly application shutdown sequence.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - if any display operation fails