/*////////////////////////////////////////////////////////
Name: 	ASTOffset

Author: 	Sarah Han-de-Beaux

*////////////////////////////////////////////////////////

/* Generated By:JJTree: Do not edit this line. ASTOffset.java */

public class ASTOffset extends SimpleNode {
  public ASTOffset(int id) {
    super(id);
  }

  public ASTOffset(drawphase3 p, int id) {
    super(p, id);
  }

  public void generate(String Colour, int brush, int x, int y)
	{
		ASTInt xNode = ((ASTInt)jjtGetChild(0));
		ASTInt yNode = ((ASTInt)jjtGetChild(1));
		x += xNode.val;
		y += yNode.val;
		
		SimpleNode sNode = ((SimpleNode)jjtGetChild(2));
		sNode.generate(Colour,brush,x,y);
	}

}
