slogo.instruction.drawing
Class IsPenDown

java.lang.Object
  extended by slogo.language.GrammarElement
      extended by slogo.instruction.Instruction
          extended by slogo.instruction.drawing.IsPenDown

public class IsPenDown
extends Instruction

returns 1 (:TRUE) if the pen is down, 0 (:FALSE) if it's up.

Author:
tshishikub

Field Summary
 
Fields inherited from class slogo.language.GrammarElement
gelementsToValue
 
Constructor Summary
IsPenDown()
           
 
Method Summary
 java.lang.Object evaluate(Context c)
          returns 1 (:TRUE) if the pen is down, 0 (:FALSE) if it's up.
 
Methods inherited from class slogo.instruction.Instruction
evaluateNumericExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsPenDown

public IsPenDown()
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
returns 1 (:TRUE) if the pen is down, 0 (:FALSE) if it's up.

Overrides:
evaluate in class Instruction
Parameters:
c - context in which the evaluation takes place
Returns:
the result of evaluating the construct