Class PenStateCommand
- java.lang.Object
-
- ch.unibas.informatik.jturtle.commands.PenStateCommand
-
- All Implemented Interfaces:
TurtleCommand
public class PenStateCommand extends java.lang.Object implements TurtleCommand
-
-
Constructor Summary
Constructors Constructor Description PenStateCommand(boolean penDown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterpret(TurtleInterpreter interpreter)booleanisPenDown()booleanisPenUp()
-
-
-
Method Detail
-
isPenDown
public boolean isPenDown()
-
isPenUp
public boolean isPenUp()
-
interpret
public void interpret(TurtleInterpreter interpreter)
- Specified by:
interpretin interfaceTurtleCommand
-
-