public class ExecuteCommand
extends java.lang.Object
Constructor and Description |
---|
ExecuteCommand() |
Modifier and Type | Method and Description |
---|---|
static void |
execute(java.lang.String instruction,
TurtleField turtleField)
Evaluates commands by passing them to the interpreter
|
static void |
execute(java.lang.String instruction,
TurtleField turtleField,
boolean printConfirmation)
An execute command that allows the user to specify if they want to print
|
public static void execute(java.lang.String instruction, TurtleField turtleField)
instruction
- The instruction to be executedturtleField
- The field that contains needed informationpublic static void execute(java.lang.String instruction, TurtleField turtleField, boolean printConfirmation)
instruction
- The instruction to be interpretedturtleField
- The field to be affectedprintConfirmation
- The confirmation of printing