public class OpenSubroutineCommand
extends java.lang.Object
Constructor and Description |
---|
OpenSubroutineCommand() |
Modifier and Type | Method and Description |
---|---|
static void |
loadLogoFile(java.io.BufferedReader subroutine,
TurtleField turtleField)
The loads .logo command takes a buffered reader based on a .logo subroutine and
executes every command in the file
Currently checks for [] and returns these commands as their own instruction
|
static void |
openSubroutine(TurtleField turtleField)
Asks the user for and then opens a file that contains a subroutine
|
public static void openSubroutine(TurtleField turtleField)
turtleField
- A field that contains all the information and programs neededpublic static void loadLogoFile(java.io.BufferedReader subroutine, TurtleField turtleField) throws java.io.IOException
subroutine
- turtleField
- java.io.IOException