Class LookClientCommand.LookClientCommandResult
java.lang.Object
za.co.wethinkcode.robots.server.clientCommands.ClientCommandResult
za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
- All Implemented Interfaces:
CommandResult
- Enclosing class:
LookClientCommand
Evaluated Result of the look command.
-
Constructor Summary
ConstructorsConstructorDescriptionLookClientCommandResult(ServerRobot target, WorldState worldState, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
-
Constructor Details
-
LookClientCommandResult
public LookClientCommandResult(ServerRobot target, WorldState worldState, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getObstacles
-
writeToDisk
public void writeToDisk()Allows us to write our output to disk -
toString
Standard toString for developer use- Specified by:
toStringin interfaceCommandResult- Overrides:
toStringin classObject- Returns:
- Standard String that's developer readable
-
toJson
Jackson serialisation string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getInternalResponseCode
Explicitly forces Command Results to return a responseCode- Returns:
- a response code
-
getImplementedClientCommands
Return the command that this result was evaluating- Specified by:
getImplementedClientCommandsin classClientCommandResult- Returns:
- which command this is an evaluation of
-
getMessage
- Specified by:
getMessagein classClientCommandResult- Returns:
- the result's message (useful for debugging)
-