public class Towards extends Instruction
| Modifier and Type | Field and Description | 
|---|---|
private GrammarElement | 
targetX  | 
private GrammarElement | 
targetY  | 
gelementsToValue| Constructor and Description | 
|---|
Towards(GrammarElement ge1,
       GrammarElement ge2)
Constructs a TOWARDS instruction that can be executed. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
evaluate(Context c)
Evaluate this instruction in a Context. 
 | 
java.lang.String | 
toString()  | 
private GrammarElement targetX
private GrammarElement targetY
public Towards(GrammarElement ge1, GrammarElement ge2)
ge1 - x coordinatege2 - y coordinatepublic java.lang.Object evaluate(Context c)
evaluate in class Instructionc - the Context for the evaluationpublic java.lang.String toString()
toString in class java.lang.Object