Class ConstructionCommand

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

public class ConstructionCommand extends Object implements Command
  • Constructor Details

    • ConstructionCommand

      public ConstructionCommand()
  • Method Details

    • action

      public boolean action(ArrayList<String> args)
      Description copied from interface: Command
      Action a command.
      Specified by:
      action in interface Command
      Parameters:
      args - command args
      Returns:
      command was successful
    • construct

      public boolean construct(BuildingType type)
      Takes a BuildingType and produces a corresponding input component and highlight
      Parameters:
      type - which building type we want to build
      Returns:
      whether or not the input component was successfully created
    • isFinished

      public boolean isFinished()