slogo.instruction.drawing
Class SetX

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

public class SetX
extends OneParameterInstruction

moves the turtle horizontally to a new absolute horizontal coordinate

Author:
tshishikub

Field Summary
 
Fields inherited from class slogo.instruction.drawing.OneParameterInstruction
param
 
Fields inherited from class slogo.language.GrammarElement
gelementsToValue
 
Constructor Summary
SetX(GrammarElement e)
           
 
Method Summary
 java.lang.Object evaluate(Context c)
          moves the turtle horizontally to a new absolute horizontal coordinate
 
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

SetX

public SetX(GrammarElement e)
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
moves the turtle horizontally to a new absolute horizontal coordinate

Specified by:
evaluate in class OneParameterInstruction
Parameters:
c - context in which the evaluation takes place
Returns:
the result of evaluating the construct