Class LaunchClientCommand.LaunchCommandResult

java.lang.Object
za.co.wethinkcode.robots.server.clientCommands.ClientCommandResult
za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
All Implemented Interfaces:
Stateful, CommandResult
Enclosing class:
LaunchClientCommand

public static class LaunchClientCommand.LaunchCommandResult extends ClientCommandResult implements Stateful
  • Constructor Details

  • Method Details

    • getSpawn

      public Position getSpawn()
      Getter for the spawn point of a Robot
      Returns:
      the spawn point of this Robot
    • getNewRobot

      public ServerRobot getNewRobot()
      Getter for the new Robot being made
      Returns:
      get the new Robot
    • getImplementedClientCommands

      public ImplementedClientCommands getImplementedClientCommands()
      Return the command that this result was evaluating
      Specified by:
      getImplementedClientCommands in class ClientCommandResult
      Returns:
      which command this is an evaluation of
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in class ClientCommandResult
      Returns:
      the result's message (useful for debugging)
    • getWorldState

      public WorldState getWorldState()
      Gets the worldState that the robot was launched into.
      Returns:
      the worldState that the robot was made in
    • writeToDisk

      public void writeToDisk()
      Allows us to write our output to disk
      Specified by:
      writeToDisk in interface CommandResult
    • getInternalResponseCode

      public InternalResponseCode getInternalResponseCode()
      Explicitly forces Command Results to return a responseCode
      Specified by:
      getInternalResponseCode in interface CommandResult
      Returns:
      a response code
    • getNextWorldState

      public WorldState getNextWorldState()
      Get the WorldState that the stateful command was evaluated based on.
      Specified by:
      getNextWorldState in interface Stateful
      Returns:
      the worldState that the commandResult was based on