Class DebugCommand

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

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

    Constructors 
    Constructor Description
    DebugCommand()  
  • Method Summary

    Modifier and Type Method Description
    boolean action​(java.util.ArrayList<java.lang.String> args)
    Toggles debug mode on or off if the corresponding argument is received.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • action

      public boolean action​(java.util.ArrayList<java.lang.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