|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.language.GrammarElement
slogo.instruction.Instruction
slogo.instruction.drawing.Towards
public class Towards
returns a heading the turtle should be facing to point from its current position to the given position
Field Summary | |
---|---|
(package private) GrammarElement |
myX
|
(package private) GrammarElement |
myY
|
Fields inherited from class slogo.language.GrammarElement |
---|
gelementsToValue |
Constructor Summary | |
---|---|
Towards(GrammarElement x,
GrammarElement y)
|
Method Summary | |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context. |
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 |
Field Detail |
---|
GrammarElement myX
GrammarElement myY
Constructor Detail |
---|
public Towards(GrammarElement x, GrammarElement y)
Method Detail |
---|
public java.lang.Object evaluate(Context c)
GrammarElement
evaluate
in class Instruction
c
- context in which the evaluation takes place
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |