Class DebugCommand

java.lang.Object
com.deco2800.game.ui.terminal.commands.DebugCommand
All Implemented Interfaces:
Command

public class DebugCommand extends Object implements Command
A command for toggling debug mode on and off.
  • Constructor Details

    • DebugCommand

      public DebugCommand()
  • Method Details

    • action

      public boolean action(ArrayList<String> args)
      Toggles debug mode on or off if the corresponding argument is received.
      Specified by:
      action in interface Command
      Parameters:
      args - command arguments
      Returns:
      command was successful