Class LaunchClientCommand
java.lang.Object
za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand
- All Implemented Interfaces:
ClientCommand,Command
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final recordRecord Class of the arguments needed to launch a robotstatic class -
Constructor Summary
ConstructorsConstructorDescriptionLaunchClientCommand(String robotName, Map<String, Argument> argumentsMap) LaunchClientCommand(Map<String, Argument> argumentsMap) -
Method Summary
Modifier and TypeMethodDescriptionexecute(Map<String, Argument> args, WorldState worldState) 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
-
Constructor Details
-
LaunchClientCommand
-
LaunchClientCommand
-
-
Method Details
-
execute
Overload of execute method that supports passing in a robot as the target for a command- Specified by:
executein interfaceClientCommand- Parameters:
target- the robot that this command is being executed onargs- arguments for this CommandworldState- the current state of the world- Returns:
- an immutable evaluation of the command
-
execute
-