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

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

File				: STBlock.java
Auther				: M. Spiller
Registration #		: Y0259667
Date				: Thursday 13th november 2003
Unit				: CMP-2A25 Programming - Software Development Techniques
Description			: Block class representing objects placed withing curled braces

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

import java.io.*;

public class ASTBlock extends SimpleNode 
{
	public ASTBlock(int id) 
	{
		super(id);
	}
   
	public ASTBlock(DrawPhase3 p, int id) 
	{
		super(p, id);
	}
	
	public void generate(FileWriter SVGFile, int Xsc, int Ysc, 
						int X, int Y, String colour, int brush)
	{
		int count = jjtGetNumChildren();
		//loop to cycle through children in block object
		for(int i = 0; i < count; i++)
		{
			//generates each child
			jjtGetChild(i).generate(SVGFile, Xsc, Ysc, X, Y, colour, brush);
		}
	}
}
