Interface ClientCommand

All Superinterfaces:
Command
All Known Implementing Classes:
LaunchClientCommand, LookClientCommand, StateClientCommand

public interface ClientCommand extends Command
Interface for all client commands that get executed on the server
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(ServerRobot target, Map<String,Argument> args, WorldState worldState)
    Overload of execute method that supports passing in a robot as the target for a command

    Methods inherited from interface za.co.wethinkcode.robots.shared.Command

    execute
  • Method Details

    • execute

      CommandResult execute(ServerRobot target, Map<String,Argument> args, WorldState worldState)
      Overload of execute method that supports passing in a robot as the target for a command
      Parameters:
      target - the target that this command will be executed on
      args - arguments for this Command
      worldState - the current state of the world
      Returns:
      an immutable evaluation of the command