Interface Command

All Known Subinterfaces:
ClientCommand
All Known Implementing Classes:
DumpCommand, LaunchClientCommand, LookClientCommand, QuitCommand, RobotsCommand, StateClientCommand

public interface Command
Interface that abstracts all serverCommands and promises all serverCommands will return a commandResult
  • Method Details

    • execute

      CommandResult execute(Map<String,Argument> args, WorldState worldState)
      Parameters:
      args - arguments for this Command
      worldState - the current state of the world
      Returns:
      an immutable evaluation of the command