Class SaveCommand

java.lang.Object
com.csse3200.game.ui.terminal.commands.SaveCommand
All Implemented Interfaces:
Command

public class SaveCommand extends Object implements Command
A command for saving the games current state
  • Constructor Details

    • SaveCommand

      public SaveCommand()
  • Method Details

    • action

      public boolean action(ArrayList<String> args)
      saves game through the SaveLoad service
      Specified by:
      action in interface Command
      Parameters:
      args - command arguments
      Returns:
      command was successful