Class MoveCommand
- java.lang.Object
-
- ch.unibas.informatik.jturtle.commands.MoveCommand
-
- All Implemented Interfaces:
TurtleCommand
public class MoveCommand extends java.lang.Object implements TurtleCommand
-
-
Constructor Summary
Constructors Constructor Description MoveCommand(double distance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDistance()voidinterpret(TurtleInterpreter interpreter)
-
-
-
Method Detail
-
getDistance
public double getDistance()
-
interpret
public void interpret(TurtleInterpreter interpreter)
- Specified by:
interpretin interfaceTurtleCommand
-
-