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

public class ASTRepeat extends SimpleNode {
  String name = "repeat";
  public ASTRepeat(int id) {
    super(id);
  }

  public ASTRepeat(drawphase3 p, int id) {
    super(p, id);
  }
  
  //Generates the number of repeats.
  public String generate(String colour, int brushSize, int offsetX, int offsetY, int scaleH, int scaleV)
  {
  	String temp = "" + ((ASTInt)jjtGetChild(2)).val;
  	return temp;   	
  	 	
  }
  
  //Generates the X offset value of the repeat.
  public int generateX()
  {
  	int temp = ((ASTInt)jjtGetChild(0)).val; 
  	return temp; 	   	  	 	
  } 
  
  //generates the Y offset value of the repeat.
  public int generateY()
  {
  	int temp = ((ASTInt)jjtGetChild(1)).val; 
  	return temp;	   	  	 	
  } 
  
  public String getName()
  {
     return name;
  }
  

}
