Class ImageTurtleInterpreter
- java.lang.Object
-
- ch.unibas.informatik.jturtle.graphics.ImageTurtleInterpreter
-
- All Implemented Interfaces:
TurtleInterpreter
public class ImageTurtleInterpreter extends java.lang.Object implements TurtleInterpreter
-
-
Constructor Summary
Constructors Constructor Description ImageTurtleInterpreter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterpretMove(MoveCommand moveCommand)voidinterpretPenColor(PenColorCommand pencolor)voidinterpretPenSize(PenSizeCommand penSizeCommand)voidinterpretPenState(PenStateCommand penStateCommand)voidinterpretSetHeading(SetHeadingCommand heading)voidinterpretSetPosition(SetPositionCommand pos)voidinterpretTurn(TurnCommand turnCommand)java.awt.image.BufferedImagerunTurtle(Turtle turtle, java.util.List<TurtleCommand> commands)
-
-
-
Method Detail
-
runTurtle
public java.awt.image.BufferedImage runTurtle(Turtle turtle, java.util.List<TurtleCommand> commands)
-
interpretMove
public void interpretMove(MoveCommand moveCommand)
- Specified by:
interpretMovein interfaceTurtleInterpreter
-
interpretPenColor
public void interpretPenColor(PenColorCommand pencolor)
- Specified by:
interpretPenColorin interfaceTurtleInterpreter
-
interpretPenState
public void interpretPenState(PenStateCommand penStateCommand)
- Specified by:
interpretPenStatein interfaceTurtleInterpreter
-
interpretPenSize
public void interpretPenSize(PenSizeCommand penSizeCommand)
- Specified by:
interpretPenSizein interfaceTurtleInterpreter
-
interpretSetPosition
public void interpretSetPosition(SetPositionCommand pos)
- Specified by:
interpretSetPositionin interfaceTurtleInterpreter
-
interpretSetHeading
public void interpretSetHeading(SetHeadingCommand heading)
- Specified by:
interpretSetHeadingin interfaceTurtleInterpreter
-
interpretTurn
public void interpretTurn(TurnCommand turnCommand)
- Specified by:
interpretTurnin interfaceTurtleInterpreter
-
-