Class ResumeGameOption

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

public class ResumeGameOption extends Object implements Option
The ResumeGameOption class represents a command that allows the player to return to the main game screen after navigating away.
  • Constructor Details

    • ResumeGameOption

      public ResumeGameOption()
  • 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 resume game command, updating the game screen to return the player to the main game interface.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - If an error occurs during execution.