slogo.instruction.drawing
Class ClearScreen

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

public class ClearScreen
extends Instruction

erases the drawing area and sends the turtle to the home position (Like CLEAN and HOME)

Author:
tshishikub

Field Summary
 
Fields inherited from class slogo.language.GrammarElement
gelementsToValue
 
Constructor Summary
ClearScreen()
           
 
Method Summary
 java.lang.Object evaluate(Context c)
          erases the drawing area and sends the turtle to the home position (Like CLEAN and HOME)
 
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

ClearScreen

public ClearScreen()
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
erases the drawing area and sends the turtle to the home position (Like CLEAN and HOME)

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